r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
403 stars 56 forks source link

Allow for a custom clone() method #273

Open zeehio opened 1 year ago

zeehio commented 1 year ago

Hi,

I took the comment from https://github.com/r-lib/R6/issues/179#issuecomment-464099279 by @wch and implemented it, adapting contributions from @mb706. I added tests and documentation.

Each commit is self-contained and backwards compatibility should be preserved.

Thanks for your work on R6, it feels easier than RC classes (at least to me!).