View source: R/import_ROCKproject.R
import_ROCKproject | R Documentation |
Import a ROCK project from a ROCKproject file
import_ROCKproject(
input,
path = ".",
createDirs = FALSE,
preventOverwriting = TRUE,
forceBaseZip = FALSE,
silent = rock::opts$get(silent)
)
input |
The path to the ROCK project file (typically with the extension |
path |
The path where to store the ROCK project |
createDirs |
Whether to, if the |
preventOverwriting |
If the path already contains files, whether to
prevent them from being overwritten ( |
forceBaseZip |
Whether to force using the |
silent |
Whether to be chatty or silent |
Invisibly, output
.
### Get path to example project
exampleProjectFile <-
system.file(
"ROCKprojects",
"example1.ROCKproject",
package="rock"
);
### Get a temporary directory to write to
temporaryDir <-
tempdir();
### Import the project
rock::import_ROCKproject(
input = exampleProjectFile,
path = temporaryDir,
silent = FALSE
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.