This error: Error: package or namespace load failed for ‘rlang’ in get(Info[i, 1], envir = env): lazy-load database '/Users/hwb/Library/R/4.0/library/rlang/R/rlang.rdb' is corrupt In addition: Warning message: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
is commonly seen when reinstalling an already-installed package. See https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16644 for more details. The resolution is to restart R after reinstalling an already-loaded package. Best, Kevin On Tue, May 25, 2021 at 7:07 AM Marc Schwartz via R-SIG-Mac <r-sig-mac@r-project.org> wrote: > > Hi, > > You might try a different CRAN mirror to see if perhaps the rlang binary > that you are getting is corrupted. > > Looking at CRAN for the package, the results for rlang on what is > supposed to be R release on macOS: > > https://cran.r-project.org/web/checks/check_results_rlang.html > > shows a header indicating that R devel is being used, not R release: > > > https://www.r-project.org/nosvn/R.check/r-release-macos-x86_64/rlang-00check.html > > So, I am not clear if there is a macOS binary build issue that may be > resulting in a conflict of sorts. > > A spot check of other CRAN packages (including my own) shows the same > use of R devel for macOS, and not R release, so perhaps there is a wider > issue going on with CRAN builds, unless I am missing something here. > > Simon (cc'd now) may be able to address that issue. > > Regards, > > Marc Schwartz > > > Hans W wrote on 5/25/21 9:16 AM: > > I installed the new R version 4.1.0 on my (normal) Macbook, and > > everything seemed to work fine until one of the packages depended on > > the 'rlang' package and I got the following error: > > > > > library(rlang) > > Error: package or namespace load failed for ‘rlang’ in > > dyn.load(file, DLLpath = DLLpath, ...): unable to load > > shared object '/Users/hwb/Library/R/4.0/library/rlang/libs/rlang.so': > > dlopen(/Users/hwb/Library/R/4.0/library/rlang/libs/rlang.so, 6): > > Library not loaded: > > /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib > > Referenced from: /Users/hwb/Library/R/4.0/library/rlang/libs/rlang.so > > Reason: image not found > > > > So I removed 'rlang' and reinstalled it. There was no error message, > > but when I tried to load it, the error message was: > > > > Error: package or namespace load failed for ‘rlang’ in > > get(Info[i, 1], envir = env): lazy-load database > > '/Users/hwb/Library/R/4.0/library/rlang/R/rlang.rdb' is corrupt > > In addition: Warning message: > > In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1 > > > > One of my current applications relies on 'rvest' which depends on > > 'rlang'. For the moment I am using it from a Linux computer, but it's > > quite unfortunate that I cannot run it from macOS as well. > > > > I also uninstalled the new R version and reinstalled it, but nothing > > changed. Could you give me a hint on what to do (or what I did wrong)? > > > > _______________________________________________ > > R-SIG-Mac mailing list > > R-SIG-Mac@r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac