Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs Update for Roxygen2 R6 Support #323

Merged
merged 5 commits into from
May 3, 2024
Merged

Docs Update for Roxygen2 R6 Support #323

merged 5 commits into from
May 3, 2024

Conversation

bburns632
Copy link
Collaborator

We wrote our docs before Roxygen2 added native support for R6 objects. Now, our custom docs are causing complications in testing and doc formatting, especially in R development version which does not appear to honor the list(r6=FALSE) DESCRIPTION file work around. It's time.

This PR rewrites our docs for R6 objects to be in line with current Roxygen2 support (roxygen2 v7.3.1). Documentation attempted to be kept very similar to the original.

To see docs & website today (before merge):

To see versions with this PR's changes:

  • in session docs (after checking out this PR): devtools::install_local("."); library(pkgnet); ?pkgnet
  • website (after checking out this PR): pkgdown::build_site(".")

@bburns632 bburns632 requested review from jayqi and jameslamb April 25, 2024 17:29
@bburns632
Copy link
Collaborator Author

Note, no CI failures due to docs. #322 will resolve remaining present CI test failures.

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check this for correctness... I'm not familiar with {roxygen2}'s patterns for documenting {R6} classes.

Just quickly skimmed for grammar, and approving to say "yes I totally support just fully overhauling the docs to work the way that {roxygen2} now wants them to".

Thanks for doing this!

R/AbstractGraphReporter.R Show resolved Hide resolved
#' @importFrom R6 R6Class
#' @export
Three <- R6::R6Class(
# R6 classes don't need classname to match generator name
classname = "HardlyThree",
inherit = Two,
public = list(
#' @description
#' Print poem thrice
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

bburns632 added 3 commits May 3, 2024 12:01
modern R6 doc standards for roxygen and pkgdown

link to node measures page instead of inherit section

default reports detail
@bburns632 bburns632 force-pushed the just_docs_update branch from 813a399 to 685f3cc Compare May 3, 2024 17:02
@bburns632 bburns632 merged commit 43d40ba into main May 3, 2024
6 checks passed
@bburns632 bburns632 deleted the just_docs_update branch May 3, 2024 19:20
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.

2 participants