View source: R/export_ROCKproject.R
export_ROCKproject | R Documentation |
Export a ROCK project to a single ROCKproject file
export_ROCKproject(
output,
path = ".",
config = NULL,
includeRegex = NULL,
excludeRegex = NULL,
createDirs = FALSE,
preventOverwriting = TRUE,
forceBaseZip = FALSE,
silent = rock::opts$get("silent")
)
output |
The file to write to; should have the extension |
path |
The path with the ROCK project |
config |
Optionally, a named list with configuration options to
override. For supported options, see |
includeRegex |
A regular expression used to select files to include in the project file |
excludeRegex |
A regular expression used to omit files from the
project file; selection takes place after the selection by |
createDirs |
Whether to, if any directories in the |
preventOverwriting |
If the output file already exists, whether to
prevent it from being overwritten ( |
forceBaseZip |
Whether to force using the |
silent |
Whether to be chatty or silent |
Invisibly, output
.
### Get path to example project
examplePath <-
system.file(
"ROCKprojects",
"exportable-ROCKproject-1",
package="rock"
);
### Get a temporary filename to write to
projectFilename <-
tempfile(
fileext = ".ROCKproject"
);
### Export it
rock::export_ROCKproject(
path = examplePath,
output = projectFilename,
silent = FALSE
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.