Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R - Can't install 'SDMTools' for R version 3.6.2

I have issues insalling the R packages SDMTools.

install.packages("SDMTools")
Installing package into ‘C:/Users/aaa/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘SDMTools’ is not available (for R version 3.6.2)

I have also tried

BiocManager::install(c('SDMTools'), ask=T ) 
Bioconductor version 3.10 (BiocManager 1.30.10), R 3.6.2 (2019-12-12)
Installing package(s) 'SDMTools'
Installation path not writeable, unable to update packages: boot, foreign, lattice, MASS, nlme, nnet
Old packages: 'digest', 'mvtnorm'
Update all/some/none? [a/s/n]: 
n
Warning message:
package ‘SDMTools’ is not available (for R version 3.6.2)

My session info is below:

sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] readstata13_0.9.2 devtools_2.2.2    usethis_1.5.1    

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.3          rstudioapi_0.11     magrittr_1.5        pkgload_1.0.2       R6_2.4.1            rlang_0.4.4        
 [7] fansi_0.4.1         tools_3.6.2         pkgbuild_1.0.6      sessioninfo_1.1.1   cli_2.0.1           withr_2.1.2        
[13] ellipsis_0.3.0      remotes_2.1.1       assertthat_0.2.1    digest_0.6.24       rprojroot_1.3-2     crayon_1.3.4       
[19] processx_3.4.2      BiocManager_1.30.10 callr_3.4.2         fs_1.3.1            ps_1.3.2            curl_4.3           
[25] testthat_2.3.1      memoise_1.1.0       glue_1.3.1          compiler_3.6.2      desc_1.2.0          backports_1.1.5    
[31] prettyunits_1.1.1

Any idea on how to install SDMTools? I need it to install the package rblm.

Thank you

like image 365
Andrew Avatar asked Mar 03 '23 18:03

Andrew


1 Answers

Try running this script:

install.packages("remotes")
remotes::install_version("SDMTools", "1.1-221")
like image 177
mmbuckley Avatar answered Mar 05 '23 14:03

mmbuckley