Closed stroberts closed 2 years ago
Thanks for alerting and the helpful info.
This is a new dependency. I wasn't aware that withr
versions before 2.4.0 (January 2021) have this problem. Commit b85551e adds the version (>= 2.4.0) on the withr
dependency.
Here's what I added to news:
@str-amg reported that the new dependency on
withr
package should have version 2.4.0 (published in January 2021) or higher. Versionwithr 2.3.0
and before may giveError: object 'local_seed' is not exported by 'namespace:withr'
. Either update manually, or install the patched versionmice 3.14.1
from GitHub. (#445)
Hope this solves the problem.
Reopening to give it higher visibility.
@stefvanbuuren I've pinned the issue. You can close if you want - it'll remain at the top of the issues page
Hi there, don't have time to document this as thoroughly as I'd like, but I have some strong indicia that the latest version of mice (v3.14.0) has a dependency on withr >=2.4.0, which is not specified in the DESCRIPTION file. Specifically I encountered issues installing mice with withr v2.3.0 below:
which was easily addressed by updating withr to the latest CRAN version (v2.4.2). I note that withr is an explicit dependency listed in the DESCRIPTION but has no version requirement.
~I'm sorry I haven't been able to dig up the reference to either local_seed's use in this package, nor when between 2.3.0 and 2.4.2 local_seed became an exported function.~ Update -- it turns out withr put it right in NEWS: -- the dependency is on
withr (>=2.4.0)
Please let me know if further documentation of the error is needed.