Create documentation of a rda / RData dataset in a package
use_data_doc(
name,
prefix = "doc_",
description = "Description",
source = "Source"
)
Name of your data without extension
Add prefix for the name of the output R script
Description of the dataset that will be added in the documentation
Source of the dataset that will be presented in the documentation
Creates a data documentation in a R file and returns path to the file
get_data_info()
to only retrieve information without writing the documentation
if (FALSE) {
# This adds a R file in the current user directory
# This works if there is a "my_data.rda" file in your "data/" directory
use_data_doc("my_data", description = "Description of my_data", source = "Here the source")
}