pkgreview_init: Initialise pkgreview

Description Usage Arguments Value Examples

View source: R/pkgreview.R

Description

Initialise pkgreview

Usage

1
2
pkgreview_init(pkg_repo, review_dir = ".", pkg_dir = NULL,
  template = c("review", "editor"), issue_no = NULL)

Arguments

pkg_repo

character string of the repo owner and name in the form of "owner/repo".

review_dir

path to the review directory. Defaults to the working directory.

pkg_dir

path to package source directory, cloned from github. Defaults to the package source code directory in the review parent.

template

character string, one of review or editor.

issue_no

integer. Issue number of the pkg review in the rOpenSci software-review repository. If NULL (default), the issue number is extracted from the rOpenSci Under Review badge on the pkg repository README. Supplying an integer to issue_no overrides this behaviour and can be useful if a badge has not been added to the README yet.

Value

Initialisation creates pre-populated index.Rmd, pkgreview.md and README.md documents. To initialise correctly, the function requires that the source code for the package has been cloned. This might need to be done manually if it failed during review creation. If setup is correct.

Examples

1
2
3
4
5
## Not run: 
# run from within an uninitialised pkgreviewr project
pkgreview_init(pkg_repo = "ropensci/rdflib")

## End(Not run)

annakrystalli/pkgreviewr documentation built on Oct. 27, 2019, 4:22 a.m.