prMoveScript: Move, rename and delete scripts

Description Usage Arguments See Also Examples

Description

These functions can be used to pragrammatically move, rename and delete scripts files.

Usage

1
2
3
4
5
prMoveScript(name, newDir, subdir = ".")

prRenameScript(name, newName, subdir = ".")

prDeleteScript(name, subdir = ".")

Arguments

name

Name of the script on which one wants to perform an action.

newDir

Subdirectory where to move a script.

subdir

Subdirectory of the script on which one wants to perform an action. It can also be indicated directly in the name parameter.

newName

New name of the script.

See Also

prScript

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
projectPath <- file.path(tempdir(), "test")
prInit(projectPath)

prScript("test")

prMoveScript("test", "testdir")

prRenameScript("testdir/test", "myTest")

prDeleteScript("testdir/myTest")

FrancoisGuillem/project documentation built on May 6, 2019, 5:06 p.m.