imkdir {rirods} | R Documentation |
Create a New Collection in iRODS
Description
This is the equivalent to dir.create()
, but creating a collection in iRODS
instead of a local directory.
Usage
imkdir(
logical_path,
create_parent_collections = FALSE,
overwrite = FALSE,
verbose = FALSE
)
Arguments
logical_path |
Path to the collection to create, relative to the current
working directory (see |
create_parent_collections |
Whether parent collections should be created
when necessary. Defaults to |
overwrite |
Whether the existing collection should be overwritten
if it exists. Defaults to |
verbose |
Whether information about the HTTP request and response
should be printed. Defaults to |
Value
Invisibly the HTTP request.
See Also
irm()
for removing collections,
dir.create()
for an R equivalent.
Examples
is_irods_demo_running()
# connect project to server
create_irods("http://localhost:9001/irods-http-api/0.2.0")
# authentication
iauth("rods", "rods")
# list all object and collection in the current collection of iRODS
ils()
# create a new collection
imkdir("new_collection")
# check if it is there
ils()
# and move to the new directory
icd("new_collection")
# remove collection
icd("..")
irm("new_collection", force = TRUE, recursive = TRUE)
[Package rirods version 0.2.0 Index]