Skip to content

Export only the documented API (removes the Rd warning) - #7

Merged
wolski merged 2 commits into
mainfrom
export-public-api
Nov 2, 2026
Merged

wolski merged 2 commits into
mainfrom
export-public-api

Conversation

@wolski

@wolski wolski commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #6: merge #6 first; GitHub then retargets this PR to main.

Of 99 exports, only 4 functions are documented for users (README, vignette, AI skill, h5ad spec). The other 95 were exported so the installed app could see them; since #5 the installed app attaches the package namespace, so that is no longer needed. The 19 Rd files with 63 undocumented arguments (the remaining R CMD check WARNING) all belong to those app helpers.

Exported after this PR (11)

  • exploreDE(), build_explore_h5ad(), new_explore_dataset(), validate_explore_dataset()
  • the R6 classes ExploreDataset, ExploreDatasetH5AD, ExploreDatasetSE, ExploreDatasetSE_CountQC, ExploreDatasetSE_CrisprCountQC, ExploreDatasetSE_Proteomics, ExploreDatasetSE_RNASeq (their Rd pages document the methods users call on new_explore_dataset() results)

Commits

  • eaf8598: @export → @noRd for the 89 other objects (88 exported helpers plus se_from_prolfquapp_anndata, which was tagged but never exported); NEWS bullet under Breaking changes
  • 02f0aad: make document output: NAMESPACE (99 → 11 exports), 88 Rd files removed, man/is_prolfquapp_anndata.Rd added (its block has @keywords internal), man/build_explore_h5ad.Rd caught up, RoxygenNote 7.3.3

Why nothing breaks

  • Production (ShinyProxy) sources R/ into the app; exports are irrelevant there
  • Installed app: attaches the namespace (Fix app errors with the installed package and non-model .h5ad files #5)
  • Tests: test_check() runs them inside the namespace; the 5 existing exploreDE::: calls keep working
  • Vignette, README, skill: use only the 4 public functions
  • No exploreDE:: calls to the helpers anywhere in the ShinyProxy apps or the prolfqua packages

Checked locally

  • R CMD check (macOS, with vignettes): 0 WARNINGs; Rd usage, cross-references, missing documentation, code/doc mismatches, examples and vignette all OK. The one ERROR is the 3 prolfquapp_h5ad tests, which skip on CI (prolfquapp not installed there).
  • Installed package started with exploreDE::exploreDE(): 11 exports, page loads (HTTP 200), internal helpers visible, no errors.

Prepared with the assistance of an AI coding agent.

exploreDE(), build_explore_h5ad(), new_explore_dataset(),
validate_explore_dataset() and the ExploreDataset* R6 classes stay exported.
The other 89 objects get @nord instead of @export: the app sources R/ in
production and, since #5, attaches the namespace when installed; tests run in
the namespace. This removes the 19 Rd files with 63 undocumented arguments
(R CMD check WARNING).
@wolski
wolski changed the base branch from fix-r-cmd-check to main November 2, 2026 11:32
@wolski
wolski merged commit 0f04a74 into main Nov 2, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant