View source: R/update_contributing.R
update_contributing | R Documentation |
CONTRIBUTING.md
Update CONTRIBUTING.md
and the vignette "Contribute_to_NVIpkg.Rmd"
from the template in NVIpackager
. If the files don't exist, they are created.
update_contributing(
pkg = stringi::stri_extract_last_words(usethis::proj_path()),
pkg_path = usethis::proj_path()
)
pkg |
[ |
pkg_path |
[ |
The template is found in NVIpackager
. Any change in the text
must be done in the template.
None. Writes the vignette "Contribute_to_NVIpkg.Rmd" and the file CONTRIBUTING.md
.
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"))
}
use_contributing(pkg = "NVItest",
pkg_path = file.path(td, "NVItest"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.