Reconsider exporting format_cropr() and dectect_mixture()

Open
#148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
api

Research direction

Start by locating the exports, documentation, and tests for format_cropr() and dectect_mixture(); the issue names no specific files. Decide whether they should remain public or become internal, and consider whether a deprecation cycle is needed for backward compatibility. Done means the chosen API status is reflected consistently in exports, documentation, validation, and tests.

Written by the indexing model from the issue text.

Description

Description

The functions format_cropr() and dectect_mixture() are currently exported in CroPlotR, making them part of the public API.

However, their intended scope and level of stability seem closer to internal utilities rather than user-facing functions. They are primarily used as intermediate processing steps and are not clearly documented as standalone features for end users.

This raises the question of whether they should remain exported.

Proposed change
  • Move format_cropr() and dectect_mixture() to internal scope (remove @export and document them with @keywords internal if needed).
  • Alternatively, if they are meant to be part of the public API:
    • Clarify their role in the documentation.
    • Strengthen argument validation.
    • Add explicit examples and tests covering user-facing usage.
Additional note

If backward compatibility is a concern, a deprecation cycle could be considered before fully unexporting these functions.

Dominant language
R
Stars
1
Forks
3
Avg merge
9h 41m
Merged PRs (30d)
2

Getting set up

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.

More from SticsRPacks/CroPlotR

All issues in SticsRPacks/CroPlotR

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.