-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
Note, no CI failures due to docs. #322 will resolve remaining present CI test failures. |
There was a problem hiding this 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!
#' @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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂
modern R6 doc standards for roxygen and pkgdown link to node measures page instead of inherit section default reports detail
813a399
to
685f3cc
Compare
We wrote our docs before
Roxygen2
added native support forR6
objects. Now, our custom docs are causing complications in testing and doc formatting, especially in R development version which does not appear to honor thelist(r6=FALSE)
DESCRIPTION file work around. It's time.This PR rewrites our docs for
R6
objects to be in line with currentRoxygen2
support (roxygen2 v7.3.1). Documentation attempted to be kept very similar to the original.To see docs & website today (before merge):
install.packages("pkgnet"); library(pkgnet); ?pkgnet
To see versions with this PR's changes:
devtools::install_local("."); library(pkgnet); ?pkgnet
pkgdown::build_site(".")