It seems that the copy method does not work if you have an active binding.
Example class:
test <- setRefClass("test", fields = list(x =function() y + 1 , y = "numeric"))
Initializing, it works ok:
a <- test(y = 1)
a$x
[1] 2
a$y
[1] 1
Error on copy:
a$copy()
Error in (function () : unused argument (quote(2))
Is this the expected behavior?
R.version
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 1.2
year 2014
month 10
day 31
svn rev 66913
language R
version.string R version 3.1.2 (2014-10-31)
nickname Pumpkin Helmet