This file contains notes about code design and conventions with the aim of making collaboration and future modifications easier.
test-XX_DESCRIPTION.R
, where XX
is the order they
should be run (try to test lower order functions first).)
on the next line for multi-line functionsreturn()
unless calling high up in a functionrlang::as_label(rlang::enquo())
to get namecheck_column()
function calls have to be in the
main function and cannot be moved into a sub check_XXX()
function@inheritParams common_docs
and
@inheritSection common_docs SECTION NAME
.R/aa_common_docs.R
for where the common descriptions are storedpurrr::map()
if passing ...
must use the base R anonymous function
\(x)
and not the lambda notation ~
. This is because the lambda notaion
passes the mapped variable in as ...
or .x
or ..1
, so the global ...
is overwritten. The R base \(x)
passes it in as x
only.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.