Description Usage Arguments Details Value See Also Examples
searches through the downloaded source code of a package trying to identify if it has something that looks like a log of changes between versions.
1 | check_changelog(package_directory)
|
package_directory |
the directory the package
source code lives in, returned from |
changelogs - logs of what changes in a package between versions, be that bug fixes, new features or alterations to how existing features function - are common to R packages and collections of code generally.
With R packages, they are normally stored as "NEWS"
or "CHANGELOG" files. check_changelog
checks
for the presence of a changelog by seeing if there are any files
in the root directory of the package source code that match
the case-insensitive regular expression "(change|news)".
TRUE if the package has something that looks like a changelog, FALSE otherwise.
check_vignettes
to identify if a package has vignettes
and how they are built, check_roxygen
to see if inline
documentation is built with roxygen2, and the package index for more
tests and checks.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
#Does A3 have a changelog? (yes)
file_location <- get_package_source("A3")
result <- check_changelog(file_location)
#What about "fortunes"? (no)
file_location <- get_package_source("fortunes")
result <- check_changelog(file_location)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.