Description Usage Arguments See Also Examples
The functions can be used to programmatically move or delete data files.
1 2 3 | prMoveData(name, newDir, subdir = ".")
prDeleteData(name, subdir = ".")
|
name |
Name of the data file one want to move or delete (without extension) |
newDir |
Subdirectory where to move a data file |
subdir |
Subdirectory of the data file. It can also be indicated directly in the
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | projectPath <- file.path(tempdir(), "test")
prInit(projectPath)
x <- rnorm(100)
prSave(x)
list.files(projectPath, recursive = TRUE, include.dirs = TRUE)
prMoveData(x, "testdir")
list.files(projectPath, recursive = TRUE, include.dirs = TRUE)
prDeleteData("testdir/x")
list.files(projectPath, recursive = TRUE, include.dirs = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.