prMoveData: Move and delete data files.

Description Usage Arguments See Also Examples

Description

The functions can be used to programmatically move or delete data files.

Usage

1
2
3
prMoveData(name, newDir, subdir = ".")

prDeleteData(name, subdir = ".")

Arguments

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 name parameter.

See Also

prScript

Examples

 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)

tinyProject documentation built on June 14, 2019, 5:04 p.m.