This function is about to be removed from rcompendium
.
This function refreshes a package/research compendium. It will:
Update
.Rd
files andNAMESPACE
by usingdevtools::document()
;Update external packages (in
DESCRIPTION
file) by usingadd_dependencies()
;Update badges in
README.Rmd
(if already present);Re-knitr the
README.Rmd
by usingrmarkdown::render()
;Check package integrity by using
devtools::check()
;Run analysis by sourcing
make.R
(only for compendium).
Arguments
- compendium
A character of length 1. The name of the folder to recursively detect dependencies to be added to the
Imports
field ofDESCRIPTION
file. It can be'analysis/'
(if additional folders, i.e.data/
,outputs/
,figures/
, etc. have been created in this folder),'.'
(if foldersdata/
,outputs/
,figures/
, etc. have been created at the root of the project), etc. Seenew_compendium()
for further information.Default is
compendium = NULL
(i.e. no additional folder are inspected butR/
,NAMESPACE
,vignettes/
, andtests/
are still inspected).- make
A logical value. If
TRUE
the Make-like R filemake.R
is sourced. Only for research compendium created withnew_compendium()
. Default isFALSE
.- check
A logical value. If
TRUE
package integrity is checked usingdevtools::check()
. Default isFALSE
.- quiet
A logical value. If
TRUE
(default) message are deleted.
See also
Other setup functions:
new_compendium()
,
new_package()
,
set_credentials()
Examples
if (FALSE) { # \dontrun{
library(rcompendium)
## Create an R package ----
new_package()
## Start developing functions ----
## ...
## Update package (documentation, dependencies, README) ----
refresh()
} # }