View source: R/write_pkg_data.R
write_pkg_data | R Documentation |
The function should be run with a path to a package directory.
It will then look through the data
directory of the package,
and for all data sets that are data frames, create CSV variants
in a data-csv
directory.
write_pkg_data( pkg, dir = paste0("data-", out_type), overwrite = FALSE, out_type = c("csv", "tab", "R") )
pkg |
The R package where we'd like to generate CSVs of any data frames. |
dir |
A character string representing the path to the folder. where the CSV files should be written. If no such directory exists, one will be created (recursively). |
overwrite |
Boolean to indicate if to overwrite any existing files that have conflicting names in the directory specified. |
out_type |
Format for the type of output as a CSV ( |
## Not run: write_pkg_data("openintro") list.files("data-csv") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.