NVIpkg <- params$NVIpkg pkg_path <- params$pkg_path # NVIpkg <- stringi::stri_extract_last_words(usethis::proj_path()) NVIpkg_inline <- paste0("`", NVIpkg, "`") logo_path <- "" if (file.exists(paste0("./man/figures/", NVIpkg, "_logo.png"))) { logo_path <- paste0(' <img src="man/figures/', NVIpkg, '_logo.png" align="right" height="138" />') } knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
r paste0(NVIpkg, ": ", desc::desc_get_field(key = "Title"), logo_path)
description <- desc::desc_get_field(key = "Description")
r paste0(NVIpkg_inline,
"",
sub(substr(description,1,1), tolower(substr(description,1,1)), description))
r paste0(NVIpkg_inline,
"",
sub(substr(description,1,1), tolower(substr(description,1,1)), description))
To set up a package skeleton you can use the following procedure:
{r, eval = FALSE}
NVIpackager::create_NVIpkg_skeleton(license_keyword = "BSD_3_clause")
{r update_readme_text, message=FALSE, warnings=FALSE, echo=FALSE, prompt = FALSE, comment = ""}
update_readme_text <- paste('document_NVIpkg(pkg = stringi::stri_extract_last_words(usethis::proj_path()),',
' pkg_path = usethis::proj_path(),',
' style = FALSE,',
' manual = "update",',
' contributing = FALSE,',
' readme = TRUE)',
sep = '\n')
cat(update_readme_text, sep = "", fill = TRUE)
Functions for updating documentation, performing tests, build and install the package are collected in the file "./notes/develop.R". You can run the different sections stepwise during package maintenance and updating.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.