This often indicates you need to restart R. Hadley On Friday, February 3, 2023, Nick Wray <nickmw...@gmail.com> wrote:
> Hello When trying to call various packages eg > library(raster) > library(sp) > library(rgdal) > > I get this error message: > Loading required package: sp > Error: package or namespace load failed for ‘sp’ in get0(name, envir = > where, mode = "function", inherits = FALSE): > lazy-load database 'C:/PROGRA~1/R/R-42~1.1/library/base/R/base.rdb' is > corrupt > Error: package ‘sp’ could not be loaded > In addition: Warning messages: > 1: package ‘raster’ was built under R version 4.2.2 > 2: package ‘sp’ was built under R version 4.2.2 > 3: In get0(name, envir = where, mode = "function", inherits = FALSE) : > restarting interrupted promise evaluation > 4: In get0(name, envir = where, mode = "function", inherits = FALSE) : > internal error -3 in R_decompress1 > > > Other packages load fine (and the packages above load OK on my spare > laptop) but I'm imagining that this means that I have to uninstall my > current R and reinstall the latest version - but before I go through all > that can anyone confirm that that is indeed what I need to do or is there > some other problem? > > Thanks Nick Wray > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- http://hadley.nz [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.