avoid depend on the object subset method ($
)
#1615
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It would be nice if R6-like documents can be used by other similar object.
I want to dispath methods written in rust and then write R document with roxygen2.
Since I will re-dispath
$.
and[[.
methods of the namespace, which will cause roxygen2 not working. This commit just avoid$.
and[[.
methods when dealing with R6 object document by using.subset2
, which should work for current all implementation and should be faster.Suppose I have an
Enum
object namedTimeUnit
fromrust
,Enum
object in R should be something similar with an environment bound with all active binding fields.new_namespace
will just mimic R6 generator, so we can add document with roxygen2.