build_manual
as a substitute for devtools’ version.submit()
now has an argument consider_tracked
to control exception handling if git status is not clean.throw()
to throw an error.log/tinytest.log
to cran-comments.md.cran-comments.md
only if the results read from the file are not empty. This fixes changing output from testthat causing empty results as well as empty log files (for example when tinytest.R is not present target tinytest is made anyway).tinytest
to infected packages.check_news()
only match first order sections (lines starting with #
). So we can keep documentation of changes in devel versions in the subsections.usethis
and withr
.Updated the makelist
returned by get_package_makelist()
to
log/cran_comments.Rout
(which is now the sink) to cran-comments.md
, as the later is the target file.fakemake::make("cran-comments.md", get_package_makelist())
and
system(paste("make -f", system.file("templates", "nomakefile", package = "packager"), "cran-comments.md"))
will run identical make chains. Added internal function compare_make()
to ensure for this.
Switched vignette and unit tests from git2r
to gert
, so now git2r
is not suggested anymore.
Added git wrapper git_diff()
.
Renamed makelist target from codetags.Rout
to check_codetags.Rout
according to the function’s name.
extract_vignette_codes()
now extracts to inst/vignette_codes/
.
fritools
.whoami
only if system dependency whoami
is available or the system running is windows.git2r
to gert
.makelist
returned by get_package_makelist()
to
provide_news_rd()
which will derive file inst/NEWS.rd
from file NEWS.md
. The former will be shown in the package’s help index, so it’s more prominent to people using that index than the latter which will only be shown by utils::news()
if the latter is not available. The new function is incorporated in the package’s Makelist and it’s template for a Makfile.rhub
checks.check_rhub()
to trigger checks on rhub for solaris and windows – given that you’ve configured rhub
.get_rhub_latest()
to read summaries from rhubget_local_rhub()
which is called by provide_cran_comments()
to read output from get_rhub_latest()
that was written to log/rhub.(log|Rout).provide_cran_comments()
which will then incorporate the rhub check log.cleanr
issues reported by provide_cran_comments()
.rasciidoc
, which provides a fancy floating table of contents.stop_on_devel = TRUE
to submit()
that enables a check on whether the package has a developement version (that is, following the semantic versioning definition of a pre-release version, the version has a fourth part) and, if so, stops the submission.use_git_check_version_not_tagged()
is now exported.use_git_pre_commit_script
to add git pre-commit scripts and infrastructure.infect()
now (via use_git_check_version_not_tagged()
) adds a git hook to prevent from commiting to a package version that is already tagged in git.lint_package
as a wrapper to lintr::lint_package
. Why? lintr added the cyclocomp_linter
to it’s default linters. Which sucks, because we run cyclocomp independently. And lintr should lint, not check for cyclomatic complexity. As this might reoccur in future and we don’t want to adapt all our calls to lint_package
excluding crappy linters, this is a hardcoded wrapper.build_args
to rcmdcheck::rcmdcheck()
.build_args
from character()
a derivation from the default value for args
for function rcmdcheck_and_log()
. So now all args
except “–as-cran” will be used as build_args
by default. Comes in handy, because usually we want to exclude actions (via “–no-manual” or the like) from both build and check. Now don’t need to pass them to two arguments explicitely.args
to rcmdcheck_and_log()
that is passed to rcmdcheck::rcmdcheck()
.callr
following Deepayan Sarkar (see https://deepayan.github.io/tmp/topichelp/funs.html).get_package_makelist()
to use packager::check_archive()
instead of check_archive()
.infect()
now creates man-roxygen/return_invisibly_null.R as a template for roxygen.convert_package_vignettes()
now works for multiple Rmd files.rasciidoc
in field Suggests of file DESCRIPTION.submit()
now tells you to use a developement version after submission.use_rasciidoc_vignette = FALSE
to create()
or infect()
to stick with the original rmarkdown vignette.extract_vignette_codes()
to extract R code from different vignettes.cyclocomp
and runit
instead of option is_runit.R CMD check
-log.\r
.verbose
to create().git commit -am"MESSAGE"
.NEWS.md
file to track changes to the package.