Description Usage Arguments Examples
Combines the preprocessing, documentation, and build steps into one.
1 2 3 4 5 6 7 8 | package_build(
packageName = NULL,
vignettes = FALSE,
log = INFO,
deps = TRUE,
install = FALSE,
...
)
|
packageName |
|
vignettes |
|
log |
log level |
deps |
|
install |
|
... |
additional arguments passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
package_build(file.path(tempdir(),pname), install = FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.