-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
The goodpractice package gives "advice about good practices when building R packages. Advice includes functions and syntax to avoid, package structure, code complexity, code formatting, etc."
Steps:
- Install the
goodpracticeand stockplotr R packages
install.packages("pak")
pak::pak("goodpractice")
pak::pak("nmfs-ost/stockplotr")
- Find where the
stockplotrpackage is saved on your machine. This workflow should work:
# Find where your packages live
pkg_location <- .libPaths()
# Then find where stockplotr lives, specifically. It might be:
stockplotr_location <- fs::path(pkg_location, "stockplotr")
- Run
goodpractice
goodpractice::gp("stockplotr_location")
- Address the package's advice 🙂