Learn R Programming

⚠️There's a newer version (1.0.5) of this package.Take me there.

goodpractice

Advice on R Package Building

Give advice about good practices when building R packages. Advice includes functions and syntax to avoid, package structure, code complexity, code formatting, etc.

Installation

source("https://install-github.me/MangoTheCat/goodpractice")

Usage

library(goodpractice)
gp("<my-package>")

License

MIT © Mango Solutions

Copy Link

Version

Install

install.packages('goodpractice')

Monthly Downloads

933

Version

1.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gábor Csárdi

Last Published

June 4th, 2024

Functions in goodpractice (1.0.1)

gp

Run good practice checks
default_r_file_pattern

Default pattern for R files
failed_positions

Positions of check failures in the source code
package_collate

`Collate` field from `DESCRIPTION`
results

Return all check results in a data frame
seq_linter

Find dangerous 1:x expressions
prep_expressions

Extract all closures from a package
r_package_files

Get all source files of a package, in the right order
failed_checks

Names of the failed checks
get_marker

Get a marker from the positions of a check
all_checks

List the names of all checks
checks

List all checks performed
goodpractice

Advice on R Package Building
make_rcmd_check

Wrapper on make_check, specific to R CMD check
export_json

Export failed checks to JSON