# 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)
if (FALSE) {
# Below example will only work if executed from a package directory
read_description_file()
}
Run the code above in your browser using DataLab