-
Notifications
You must be signed in to change notification settings - Fork 22
Use roxygen for help documentation #3
Comments
Some pointers for documenting R6 classes at r-lib/R6#3 #' An example R6 class
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @format An \code{\link{R6Class}} generator object
#' @keywords data
myR6Class <- R6Class("myR6Class",
...
) |
First, there are no Rd files quite yet, so conversion is impossible. Second, thinking it over, I am almost sure that all the functions created with webapi, which are not compatible with roxygen as they are dynamically generated, represent a lower level of this package that should not be exported or have user-level documentation. Third, I am getting more convinced by your idea of writing a layer of methods for generic function on top of the R6 methods, so the workaround you point to, albeit interesting, may not be necessary. So I propose we define the API and we leave this on hold for the moment. If it's all S3 generics, then we know how to use roxygen. Otherwise we need to follow the technique at the link you found, most likely. |
Documentation written in "latex" as you call it. Now you can switch to Roxygen, or move on. |
This branch is now merged back into master |
|
…ith no documentation related notes or warnings. #3
Completed conversion to |
There is too much visibility to methods. Can we avoid /name and /alias with the method written out explicitly (as.data.frame.Dataset). I know we get some warnings, but we can't document things that the user should not and can not type -- because methods are not exported, and rightfully so. It's a terrible user experience in exchange for no warnings -- to me it's a no brainer. |
I'll see what I can do. I presume your objection is that the methods show up in the package help index page - and I agree with this objection. However, this package probably needs to go on CRAN in due course, and this means we have to remove all warnings. The way I've dealt with that in other projects is to write a package help page that lists the most important functions, so the user is less dependent on the index page itself. |
Andrie said:
Antonio said:
Andrie says: I think there is a way to get the best of both worlds. Not having to learn latex must be a benefit. I'll do some experiments to see if I can convert your
.rd
files into sensible roxygen.The text was updated successfully, but these errors were encountered: