nmfs-ost / nmfs-ost/stockplotr

Find package improvements with `goodpractice` package

Open
#117 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement NSAP-code-cleanup
Dominant language
R
Stars
19
Forks
7
Avg merge
2d 13h
Merged PRs (30d)
9

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:

  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 🙂

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by installing goodpractice and stockplotr, locate the installed stockplotr package, and run goodpractice::gp("stockplotr_location"). Review each reported recommendation in the stockplotr package, then rerun goodpractice to confirm the reported advice has been addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.