Skip to content

Documenting R6 classes that are generated using function calls.  #1437

@sebffischer

Description

@sebffischer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions