Skip to content

Find package improvements with goodpractice package #117

@sbreitbart-NOAA

Description

@sbreitbart-NOAA

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:

  1. Install the goodpractice and stockplotr R packages
install.packages("pak")
pak::pak("goodpractice")
pak::pak("nmfs-ost/stockplotr")
  1. Find where the stockplotr package 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")
  1. Run goodpractice
goodpractice::gp("stockplotr_location")
  1. Address the package's advice 🙂

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions