Skip to contents

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, verbose = FALSE)

Arguments

logical_path

Path to the collection to create, relative to the current working directory (see ipwd()).

create_parent_collections

Whether parent collections should be created when necessary. Defaults to FALSE.

verbose

Whether information about the HTTP request and response should be printed. Defaults to FALSE.

Value

Invisibly the HTTP request.

See also

irm() for removing collections, dir.create() for an R equivalent.

Examples

is_irods_demo_running()
#> [1] TRUE

# connect project to server
create_irods("http://localhost/irods-rest/0.9.3", "/tempZone/home")

# authentication
iauth("rods", "rods")

# list all object and collection in the current collection of iRODS
ils()
#> This collection does not contain any objects or collections.

# create a new collection
imkdir("new_collection")

# check if it is there
ils()
#> 
#> ==========
#> iRODS Zone
#> ==========
#>                        logical_path       type
#>  /tempZone/home/rods/new_collection collection

# and move to the new directory
icd("new_collection")

# remove collection
icd("..")
irm("new_collection", force = TRUE, recursive = TRUE)