datapackage_skeleton {DataPackageR} | R Documentation |
Create a Data Package skeleton for use with DataPackageR.
Description
Creates a package skeleton directory structure for use with DataPackageR. Adds the DataVersion string to DESCRIPTION, creates the DATADIGEST file, and the data-raw directory. Updates the Read-and-delete-me file to reflect the additional necessary steps.
Usage
datapackage_skeleton(
name = NULL,
path = ".",
force = FALSE,
code_files = character(),
r_object_names = character(),
raw_data_dir = character(),
dependencies = character()
)
Arguments
name |
|
path |
A |
force |
|
code_files |
Optional |
r_object_names |
|
raw_data_dir |
|
dependencies |
|
Value
No return value, called for side effects
Examples
if(rmarkdown::pandoc_available()){
f <- tempdir()
f <- file.path(f,"foo.Rmd")
con <- file(f)
writeLines("```{r}\n tbl = data.frame(1:10) \n```\n",con=con)
close(con)
pname <- basename(tempfile())
datapackage_skeleton(name = pname,
path = tempdir(),
force = TRUE,
r_object_names = "tbl",
code_files = f)
}