update_develop: Update 'develop.R'

View source: R/update_develop.R

update_developR Documentation

Update develop.R

Description

Update develop.R from the template in NVIpackager. If the file already exist, it is overwritten.

Usage

update_develop(
  pkg = stringi::stri_extract_last_words(usethis::proj_path()),
  pkg_path = usethis::proj_path()
)

Arguments

pkg

[character(1)]
The package name. Defaults to stringi::stri_extract_last_words(usethis::proj_path()).

pkg_path

[character(1)]
The path to the package directory. Defaults to usethis::proj_path().

Details

"develop.R" is a script comprising code for creating, documenting, testing and installing a package during development and maintenance. All code should be written without reference to a specific package, so that the script can be used without modification in development and maintenance of all NVIverse packages.

The template is found in NVIpackager. Any change in the script should be done in the template. Thereby, it is easier to keep the script updated in all packages.

Value

None. Writes the R script "develop.R" to "./notes/".

Author(s)

Petter Hopp Petter.Hopp@vetinst.no

Examples

## Not run: 
# Updates the script develop.R
update_develop()

## End(Not run)


PetterHopp/NVIpackager documentation built on Sept. 14, 2024, 1:24 a.m.