inst/extdata/pkgtemplate/dev/01_load_or_install.R

# run this line if you want to replace all the files provided by the template
# armadillo4r::pkg_template()

if (!requireNamespace("devtools", quietly = TRUE)) {
  install.packages("devtools")
}

development <- TRUE

devtools::clean_dll()
cpp4r::register(".")
devtools::document()

if (isTRUE(development)) {
  devtools::load_all()
} else {
  devtools::install()
}

Try the armadillo4r package in your browser

Any scripts or data that you put into this service are public.

armadillo4r documentation built on June 12, 2026, 5:06 p.m.