document (version 3.0.1)

clean_description_file: Make a Default DESCRIPTION File Pass R CMD check

Description

utils::package.skeleton leaves us with a DESCRIPTION that throws a warning in R CMD check. Fix that.

Usage

clean_description_file(path)

Arguments

path

Path to the DESCRIPTION file or the directory containing it.

Value

Invisibly NULL.

Examples

Run this code
# NOT RUN {
if (! exists("dummy")) assign("dummy", "dumb")
utils::package.skeleton(path = tempdir())
old <- readLines(file.path(tempdir(), "anRpackage", "DESCRIPTION"))
document:::clean_description_file(path = file.path(tempdir(), "anRpackage", 
                                        "DESCRIPTION"))
new <- readLines(file.path(tempdir(), "anRpackage", "DESCRIPTION"))
setdiff(new, old)
# }

Run the code above in your browser using DataLab