datapackage_skeleton | R Documentation |
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.
datapackage_skeleton( name = NULL, path = ".", force = FALSE, code_files = character(), r_object_names = character(), raw_data_dir = character(), dependencies = character() ) datapackage.skeleton( name = NULL, list = character(), environment = .GlobalEnv, path = ".", force = FALSE, code_files = character(), r_object_names = character() )
name |
|
path |
A |
force |
|
code_files |
Optional |
r_object_names |
|
raw_data_dir |
|
dependencies |
|
list |
Not used. |
environment |
Not used. |
renamed datapackage.skeleton()
to datapackage_skeleton()
.
if(rmarkdown::pandoc_available()){ f <- tempdir() f <- file.path(f,"foo.Rmd") con <- file(f) writeLines("```{r}\n tbl = table(sample(1:10,1000,replace=TRUE)) \n```\n",con=con) close(con) pname <- basename(tempfile()) datapackage_skeleton(name = pname, path = tempdir(), force = TRUE, r_object_names = "tbl", code_files = f) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.