Title: | rOpenSci package review project template |
---|---|
Description: | Creates files and collects materials necessary to complete an rOpenSci package review. Review files are prepopulated with review package specific metadata. Review package source code is also cloned for local testing and inspection. |
Authors: | Anna Krystalli [aut, cre], Maëlle Salmon [aut] |
Maintainer: | Anna Krystalli <[email protected]> |
License: | GPL (>= 3)+ file LICENSE |
Version: | 0.3.1 |
Built: | 2024-11-27 03:55:36 UTC |
Source: | https://github.com/ropensci-org/pkgreviewr |
Create and initialise an rOpenSci package review project
pkgreview_create( pkg_repo, review_parent = ".", template = c("review", "editor"), issue_no = NULL )
pkgreview_create( pkg_repo, review_parent = ".", template = c("review", "editor"), issue_no = NULL )
pkg_repo |
character string of the repo owner and name in the form of
|
review_parent |
directory in which to setup review project and source package source code. |
template |
character string, one of |
issue_no |
integer. Issue number of the pkg review in the rOpenSci |
setup review project with templates
## Not run: # for a review project pkgreview_create(pkg_repo = "ropensci/rdflib", review_parent = "~/Documents/reviews/") # for editors checks pkgreview_create(pkg_repo = "ropensci/rdflib", review_parent = "~/Documents/editorials/", template = "editor") ## End(Not run)
## Not run: # for a review project pkgreview_create(pkg_repo = "ropensci/rdflib", review_parent = "~/Documents/reviews/") # for editors checks pkgreview_create(pkg_repo = "ropensci/rdflib", review_parent = "~/Documents/editorials/", template = "editor") ## End(Not run)
get package metadata from package source code.
pkgreview_getdata( pkg_dir = NULL, pkg_repo, template = c("review", "editor"), issue_no = NULL )
pkgreview_getdata( pkg_dir = NULL, pkg_repo, template = c("review", "editor"), issue_no = NULL )
pkg_dir |
path to package source directory, cloned from github. Defaults to the package source code directory in the review parent. |
pkg_repo |
character string of the repo owner and name in the form of
|
template |
character string, one of |
issue_no |
integer. Issue number of the pkg review in the rOpenSci |
a list of package metadata
## Not run: # run from within a pkgreviewr project with the package source code in a sibling directory pkgreview_getdata("../rdflib") ## End(Not run)
## Not run: # run from within a pkgreviewr project with the package source code in a sibling directory pkgreview_getdata("../rdflib") ## End(Not run)
Creates skeleton review files:
index.Rmd
: html_notebook
to perform and record review in
README.md
: prepopulated README for review repo.
index.Rmd
will be automatically added to .Rbuildignore
. The resulting templates are populated with default
YAML frontmatter and R fenced code chunks (Rmd
).
pkgreview_index_rmd(pkg_data, template = c("review", "editor")) pkgreview_readme_md(pkg_data) pkgreview_request(pkg_data)
pkgreview_index_rmd(pkg_data, template = c("review", "editor")) pkgreview_readme_md(pkg_data) pkgreview_request(pkg_data)
pkg_data |
package metadata generated by pkgreview_getdata() |
template |
character string, one of |
## Not run: pkg_data <- pkgreview_getdata(pkg_dir) pkgreview_index_rmd(pkg_data) pkgreview_readme_md(pkg_data) ## End(Not run)
## Not run: pkg_data <- pkgreview_getdata(pkg_dir) pkgreview_index_rmd(pkg_data) pkgreview_readme_md(pkg_data) ## End(Not run)
Initialise pkgreview
pkgreview_init( pkg_repo, review_dir = ".", pkg_dir = NULL, template = c("review", "editor"), issue_no = NULL )
pkgreview_init( pkg_repo, review_dir = ".", pkg_dir = NULL, template = c("review", "editor"), issue_no = NULL )
pkg_repo |
character string of the repo owner and name in the form of
|
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 |
issue_no |
integer. Issue number of the pkg review in the rOpenSci |
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.
## Not run: # run from within an uninitialised pkgreviewr project pkgreview_init(pkg_repo = "ropensci/rdflib") ## End(Not run)
## Not run: # run from within an uninitialised pkgreviewr project pkgreview_init(pkg_repo = "ropensci/rdflib") ## End(Not run)
Print review package function source code
pkgreview_print_source(pkgname)
pkgreview_print_source(pkgname)
pkgname |
character string. review package name |
prints out function source code for all exported functions.
## Not run: library("pkgreviewr") pkgreview_print_source("pkgreviewr") ## End(Not run)
## Not run: library("pkgreviewr") pkgreview_print_source("pkgreviewr") ## End(Not run)
Launches an interactive input browser tab to complete required parameters:
reviewer_first_name
: reviewers first name
banter
: character string of custom greeting message
JOSS
: logical, whether review includes submission to JOSS
render_request()
render_request()
renders request.Rmd
using parameters provided.
## Not run: render_request() ## End(Not run)
## Not run: render_request() ## End(Not run)
Try to get whoami info from local gh token.
try_whoami()
try_whoami()
a list of whoami token metadata
Clone an up to date copy of the specified ropensci software review/editor response template.
use_onboarding_tmpl(template = c("review", "editor"))
use_onboarding_tmpl(template = c("review", "editor"))
template |
character string, one of |
writes a {template}.md
checklist template file in the project root.
## Not run: use_onboarding_tmpl(template = "editor") ## End(Not run)
## Not run: use_onboarding_tmpl(template = "editor") ## End(Not run)