read_description_file | R Documentation |
Reads the DESCRIPTION file of an R package and converts it into a list where each element corresponds to a field in the DESCRIPTION file.
read_description_file(p = NULL)
p |
The path to the DESCRIPTION file. If |
A list where each element is a field from the DESCRIPTION file.
# Read DECRIPTION file from a specific path
graphics_pkg_dir <- system.file(package = "graphics")
graphics_pkg_descfile <- find_description_file(graphics_pkg_dir)
desc_list <- read_description_file(graphics_pkg_descfile)
str(desc_list)
## Not run:
# Below example will only work if executed from a package directory
read_description_file()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.