Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSome tests fail with upcoming release of R6 #164
Comments
|
Thanks @wch! I will look into it and submit a new version as soon as possible. |
|
@wch, I can locate where the problem comes from. However, I did not know how to handle it correctly. Here is the case:
There are two ways coming to my mind:
The first one is preferable. Could you please give me some advice on how I can provide a new public |
|
The There is a base R function called |
|
Thanks @wch. I tried to adopt your suggestion and return I will adopt to the 2nd approach in the next release. |
|
Thank you for the fast turnaround! |
I'm about to submit a new version of R6 to CRAN, but am getting errors with this package when I run checks on reverse dependencies.
Some background: In previous versions of R6, when cloning an object with active bindings, it will extract the function for the active binding at cloning time and put it in the new object. This relied on behavior from
as.list.environmentwhich apparently was a bug, and will be changed in upcoming versions of R. The bug was thatas.list.environmentwould give the function behind an active binding, rather than the value that the function returns when invoked. In upcoming versions of R, it will call the function and return that value.I have been asked by a Luke Tierney (who is a member of R-Core) to release a new version of R6 which does not rely on the buggy behavior of
as.list.environment, so that he can fix the bug in R. When the bug is fixed, it will no longer be possible to get the function for an active binding.In the development version of R6, it separately stores the functions for active bindings when an R6 object is created, and uses those stored functions to create new active bindings when the object is cloned.
Currently, tests for the CRAN version of eplusr fail with the development version of R6.
eplusr check log
Please install the development version of R6 and release a new version of eplusr which has passing tests.
In some cases, errors occur only when the package is loaded the normal way, but not when
load_all()is used.Since I have been asked by a member of R-core to submit this fixed version of R6, I want to release it as soon as possible, but this requires that an updated version of eplusr is on CRAN first. Thank you.