use_processing_script {DataPackageR} | R Documentation |
Add a processing script to a data package.
Description
The Rmd or R file or directory specified by file
will be moved into
the data-raw directory. It will also be added to the yml configuration file.
Any existing file by that name will be overwritten when overwrite is set to TRUE
Usage
use_processing_script(
file = NULL,
title = NULL,
author = NULL,
overwrite = FALSE
)
Arguments
file |
|
title |
|
author |
|
overwrite |
|
Value
invisibly returns TRUE for success. Stops on failure.
Examples
if(rmarkdown::pandoc_available()){
myfile <- tempfile()
file <- system.file("extdata", "tests", "extra.Rmd",
package = "DataPackageR")
datapackage_skeleton(
name = "datatest",
path = tempdir(),
code_files = file,
force = TRUE,
r_object_names = "data")
use_processing_script(file = "newScript.Rmd",
title = "Processing a new dataset",
author = "Y.N. Here.")
}
[Package DataPackageR version 0.16.0 Index]