ERROR: lazy loading failed for package ‘ENMTools’ - r

I am trying to install ENMtools in R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 20.1
But get the following error:
installing to /home/alonso/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-rgeos/00new/rgeos/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
DONE (rgeos)
installing source package ‘ENMTools’ ...
** package ‘ENMTools’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
double free or corruption (!prev)
Aborted (core dumped)
ERROR: lazy loading failed for package ‘ENMTools’
removing ‘/home/XXX/R/x86_64-pc-linux-gnu-library/3.6/ENMTools’
Warning in install.packages :
installation of package ‘ENMTools’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpWvRhkI/downloaded_packages’
Any help would be much appreciated

Related

Error message when installing package expss

I'm trying to download the package 'expss' in R, but I get an error message that I don't know how to solve.
This is what R tells me after trying to install 'expss':
installing the source package ‘expss’
trying URL 'https://cran.rstudio.com/src/contrib/expss_0.11.2.tar.gz'
Content type 'application/x-gzip' length 5002788 bytes (4.8 MB)
==================================================
downloaded 4.8 MB
* installing *source* package ‘expss’ ...
** package ‘expss’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘expss’:
object 'mtfrm' not found whilst loading namespace 'expss'
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/expss’
Warning in install.packages :
installation of package ‘expss’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/86/04fdfqg9769g8w7ss25qnw600000gn/T/RtmpELbScA/downloaded_packages’
Any help appreciated!

Error to install gdalcubes in R on ubuntu 20.04.3

When i install gdalcubes on ubuntu 20.04 with R, i have this error :
installing to /home/obstetar/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-gdalcubes/00new/gdalcubes/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
munmap_chunk(): invalid pointer
Aborted (core dumped)
ERROR: loading failed
removing ‘/home/obstetar/R/x86_64-pc-linux-gnu-library/4.1/gdalcubes’
Warning in install.packages :
installation of package ‘gdalcubes’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp6dZFPa/downloaded_packages’

Having trouble installing R package - "scales.so" not found, S3 methods declared in NAMESPACE but not found

I'm trying to install a package in CRAN and one of the dependencies is throwing this error:
* installing *source* package ‘viridis’ ...
** package ‘viridis’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Warning: S3 methods ‘fullseq.Date’, ‘fullseq.POSIXt’, ‘fullseq.numeric’, ‘print.trans’ were declared in NAMESPACE but not found
Error in library.dynam(lib, package, package.lib) :
shared object ‘scales.so’ not found
ERROR: lazy loading failed for package ‘viridis’
This is on Linux 12.04.5 LTS,
R version 3.2.5
Turns out you can solve this with
install.packages('scales')

Installing R package gsubfn

I am trying to install the latest version of gsubfn from source file on my CentOS machine. It installs with out any issues as follows:
> install.packages("/home/ravishankarr/PraaS/gsubfn_0.6-6.tar.gz", repos = NULL, type="source")
* installing *source* package 'gsubfn' ...
** package 'gsubfn' successfully unpacked and MD5 sums checked
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (gsubfn)
However, when I load this package, I get the following message:
> library(gsubfn)
Loading required package: proto
Could not load tcltk. Will use slower R code instead.
What does this warning message mean? Does this slow down the codes using this package? If so, is there a way to get rid of this? Would appreciate any help on this.

install staDA package

I tried to install the package statDA without success.These are the last rows of the message I received in RStudio:
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (geoR)
ERROR: dependency ‘MBA’ is not available for package ‘StatDA’
* removing ‘/home/matteo/R/i686-pc-linux-gnu-library/3.0/StatDA’
Warning in install.packages :
installation of package ‘StatDA’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpwirNxx/downloaded_packages’
I also tried to install the MBA package but actually the same error appeared.
I'm on a Ubuntu (12.04) machine running R 3.0.

Resources