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.
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
Foothat 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 callcreate_foo()orload_foo(), and these functions are responsible for instantiating a newFooobject. 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.