View source: R/labkey.security.R
labkey.security.createContainer | R Documentation |
Create a new container, which may be a project, folder, or workbook, on the LabKey server with parameters to control the containers name, title, description, and folder type.
labkey.security.createContainer(baseUrl=NULL, parentPath, name = NULL, title = NULL,
description = NULL, folderType = NULL, isWorkbook = FALSE)
baseUrl |
A string specifying the |
parentPath |
A string specifying the |
name |
The name of the container, required for projects or folders. |
title |
The title of the container, used primarily for workbooks. |
description |
The description of the container, used primarily for workbooks. |
folderType |
The name of the folder type to be applied (ex. Study or Collaboration). |
isWorkbook |
Whether this a workbook should be created. Defaults to false. |
This function allows for users with proper permissions to create a new container, which may be a project, folder, or workbook, on the LabKey server with parameters to control the containers name, title, description, and folder type. If the container already exists or the user does not have permissions, an error message will be returned.
Returns information about the newly created container.
Cory Nathe
labkey.getFolders
,
labkey.security.getContainers
,
labkey.security.deleteContainer
,
labkey.security.moveContainer
labkey.security.renameContainer
## Not run:
library(Rlabkey)
labkey.security.createContainer(baseUrl="http://labkey/", parentPath = "/home",
name = "NewFolder", description = "My new folder has this description",
folderType = "Collaboration"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.