R6 icon indicating copy to clipboard operation
R6 copied to clipboard

Encapsulated object-oriented programming for R

Results 53 R6 issues
Sort by recently updated
recently updated
newest added

I'd like to find a way to constrain fields, that is, passing tests in a similar way to the Moose Object-oriented system in Perl. This is a suggested enhancement or...

Hi all, I am developing an R package called t3 (https://github.com/OB7-IRD/t3/tree/development) using R6 classes. So far everything works fine but I have some troubles when I tried to save a...

I have a R6 class which is composed of other R6 classes. The parent class has active bindings which return each composing R6 object instance. However if the composing object...

I was hoping that someone could provide some hints on how to solve this issue presented/asked about a year ago on [SO](https://stackoverflow.com/q/65739109/1216790) - since I cannot find an answer there...

In Python, [classmethods](https://docs.python.org/3/library/functions.html#classmethod) are heritable methods that can be called from the class itself `MyClass.class_method()` (not just from an instance of that class `MyClass().normal_method()`) like a staticmethod, but which also...

If this is indeed a bug/unexpected behaviour on `{R6}`'s part, which is fixed while the PR is pending, I will adapt the section accordingly.

Follow up to #9 with perhaps a different spin, and additional context here https://github.com/apache/arrow/pull/2714#discussion_r224381298 When doing R6 promotion of class hierarchies like these: https://arrow.apache.org/docs/cpp/classarrow_1_1io_1_1_random_access_file.html ![image](https://user-images.githubusercontent.com/2625526/46853427-4f435480-cdfe-11e8-9ed9-71864c52ed9e.png) a concept of `interfaces` à...

feature

Hello, ``` > map1$clone(deep = TRUE) Error in envRefInferField(x, what, getClass(class(x)), selfEnv) : ‘.__enclos_env__’ is not a valid field or method name for reference class “uMAPR” > class(map1$.__enclos_env__$private$.map) [1] "uMAPR"...

Let's say I have a class called `Creature`. I wish to provide a `$clone()` method for this class, so I set `cloneable = TRUE`, and it works as expected: ```...

I recently wanted to implement indexing for some R6 classes and see that [others are needing something similar](https://stackoverflow.com/questions/50842251/define-a-bracket-operator-on-an-r6-class/52066296#52066296). It doesn't look like there is an easy built in way to...

feature