I would like to be able to document R6 classes that were generated by function calls.
One problem I encounter is that I am not sure how I can document methods when generating R6 classes this way.
E.g. in the example below, is it possible to document the method initialize for the R6 class generator A ?
The problem is
library(R6)
r6_gen_gen = function(class, name) {
R6Class(class,
public = list(initialize = function(name) self$name = name, name = NULL)
)
}
A = r6_gen_gen("A", "Tom")
Created on 2022-10-19 by the reprex package (v2.0.1)
I would like to be able to document R6 classes that were generated by function calls.
One problem I encounter is that I am not sure how I can document methods when generating R6 classes this way.
E.g. in the example below, is it possible to document the method
initializefor the R6 class generatorA?The problem is
Created on 2022-10-19 by the reprex package (v2.0.1)