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

Is there any way to register a function "clone_hook" so that it automatically runs every time an instance is cloned? Right now I have to do things like ```r a

Now that the vignettes have moved to their own site, it might be a good idea to include a link somewhere that is accessible via `?`. As it stands, there...

documentation

Hello. cc @leobelen We are developing a package [Rpolyhedra](https://github.com/qbotics/Rpolyhedra). Rpolyhedra is a polyhedra database scraped from internet public available sources. It makes polyhedron R6 objects from scraped sources. A ledger...

feature

Normally, when you try to define public and private members in the same class with colliding names, you get an error. ``` r MyClass Error in R6::R6Class("MyClass", public = list(colliding_method...

feature

Summarizing a conversation in Slack. Consider this snippet from the vignette: ``` r library(R6) Person

documentation

Example: ```{r} library(R6) c1 = setRefClass('Person') c2 = R6Class( cloneable=TRUE, public = list( member = c1$new() ) ) c2$new()$member c2$new()$clone(TRUE) ``` Seems like this could be potentially solved by replacing...

feature

I'm not sure why I originally made it so the `finalize` method was in `public`. It makes more sense for it to be in `private`.

feature

I'm having an issue on R6 classes when used with foreach() together, possibly to do with environments (I'm using Windows). I don't know if I forget to set environment variables...

feature

This would be handy in the case when you want to emulate multiple inheritance, by just `set()`-ing methods on a class. However, modifying an exported class might break other packages...

feature