View source: R/createFileRepositoryFolder.R
createFileRepositoryFolder | R Documentation |
This method enables the user to create a folder in the file repository. The folder created may also be a subfolder of an existing folder.
createFileRepositoryFolder(
rcon,
name,
folder_id = numeric(0),
dag_id = numeric(0),
role_id = numeric(0),
...
)
## S3 method for class 'redcapApiConnection'
createFileRepositoryFolder(
rcon,
name,
folder_id = numeric(0),
dag_id = numeric(0),
role_id = numeric(0),
...
)
rcon |
A |
name |
|
folder_id |
|
dag_id |
|
role_id |
|
... |
Arguments to pass to other methods |
Returns a data frame with the columns
folder_id | The REDCap assigned ID value for the newly created folder. |
name | The name assigned to the folder by the user. |
exportFromFileRepository()
,
importToFileRepository()
,
deleteFromFileRepository()
,
exportFileRepository()
,
importFileRepository()
,
deleteFileRepository()
,
exportFileRepositoryListing()
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Create a folder in the top-level directory
createFileRepositoryFolder(rcon,
name = "New Folder Name")
# Create a folder in a subfolder
createFileRepositoryFolder(rcon,
name = "New Folder Name",
folder_id = 12345)
# Create a folder assigned to a Data Access Group
createFileRepositoryFolder(rcon,
name = "New Folder Name",
dag_id = 678)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.