Example showing different ways to store data in an R package
.RData or .rdasave()data/ folder of the packageR/ folder. See R/data.R for an exampledata(diamonds, package = "exampleData")dataExample::diamonds.RDS, .csv or otherreadRDS()inst/extdatasystem.file() function. This function only creates the file path. Then have to use appropriate function to read in. E.g. read_csv(system.file("extdata", "mtcars", package = "dataExample") or readRDS(system.file("extdata", "example_data", package = "dataExample")Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.