Skip to content

Opt-out of documenting an R6 method/field #1067

@daattali

Description

@daattali

Related to #1026

This is not a typical usecase, but I'm curious to see if you think it should be supported.

In a package, I have an R6 class Foo that I don't want to allow the user to instantiate directly. I have sort of a factory design pattern, meaning that I want the user to either call create_foo() or load_foo(), and these functions are responsible for instantiating a new Foo object. The user can then operate on this object.

I want to document all the public methods of this class, but because I'm not letting the user call Foo$new() directly, I don't want to document it. Currently I'm forced to give it some placeholder docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions