View source: R/document_NVIpkg.R
document_NVIpkg | R Documentation |
A wrapper around functions for styling, write the help files
and update README
and CONTRIBUTING.md
.
document_NVIpkg(
pkg = stringi::stri_extract_last_words(usethis::proj_path()),
pkg_path = usethis::proj_path(),
style = FALSE,
manual = "update",
contributing = FALSE,
readme = FALSE,
...
)
pkg |
[ |
pkg_path |
[ |
style |
[ |
manual |
[ |
contributing |
[ |
readme |
[ |
... |
Other arguments to be passed to
|
The help files for R-functions will always be generated. Whether
styling should be performed and README
and CONTRIBUTING.md
should be updated are controlled by input arguments.
Default value for styling is scope = "spaces"
. Input to
scope
can be any subset of c("spaces", "indention", "line_breaks", "tokens").
For indention, rather use Ctrl+I
than scope = "indention"
.
Be careful if using scope = "tokens"
as code may be broken.
none. Updated help files for all functions and,
depending on argument input, can updated style,
CONTRIBUTING.md
, and README
Petter Hopp Petter.Hopp@vetinst.no
## Not run:
# Attach packages and set up with temporary directory
library(NVIpackager)
td <- tempdir()
if (!dir.exists(file.path(td, "NVItest"))) {
dir.create(file.path(td, "NVItest"))
}
if (!dir.exists(file.path(td, "NVItest", "vignettes"))) {
dir.create(file.path(td, "NVItest", "vignettes"))
}
document_NVIpkg(pkg = "NVItest",
pkg_path = file.path(td, "NVItest"),
style = FALSE,
contributing = TRUE,
readme = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.