Tiffany Vidal
2022-Apr-12 03:59 UTC
[R] Confused by error message: Error in assign(".popath", popath, .BaseNamespaceEnv)
I am trying to install a package and am getting an unusual (to me) error: devtools::install_github("MikkoVihtakari/ggOceanMapsData") Error in assign(".popath", popath, .BaseNamespaceEnv) : cannot change value of locked binding for '.popath' Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> assign I have modified the R_USER, R_LIBS, HOME, etc settings to try and get R and knitr to behave. I have been successful there, but now this error. Any thoughts on what this means and how to fix the issue would be welcomed. I found a similar post that indicated clearing the R history worked to solve the issue, but that did not for me. It appears to be associated with the base package and ".popath is a variable created at startup which records where the translations package in use is." I have noted that the translations package does exist in my R_LIBS location. I am not sure how to troubleshoot this error. Thanks in advance. Session info: R version 4.1.3 (2022-03-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044) [[alternative HTML version deleted]]
Ivan Krylov
2022-Apr-12 10:38 UTC
[R] Confused by error message: Error in assign(".popath", popath, .BaseNamespaceEnv)
? Tue, 12 Apr 2022 15:59:35 +1200 Tiffany Vidal <tiffany.vidal at gmail.com> ?????:> devtools::install_github("MikkoVihtakari/ggOceanMapsData") > > Error in assign(".popath", popath, .BaseNamespaceEnv) : > cannot change value of locked binding for '.popath' > Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> assignA full output of traceback() just after the error could be very useful here. This error message might indicate a bug in devtools or its dependencies (perhaps remotes). I don't know if the developers of remotes or devtools lurk here, but it should be possible to reach them at GitHub: https://github.com/r-lib/devtools/issues You could also check whether devtools or the package itself is to blame by downloading the code (either using git clone or by downloading the zip archive of the head of the master branch), then running R CMD build and R CMD INSTALL on the contents. -- Best regards, Ivan