RangeShifter / RangeShiftR-package

⚠️ Archive ⚠️ of the old structure of the R package as interface to the RangeShifter simulation platform. Please use the new structure: https://github.com/RangeShifter/RangeShiftR-pkg
https://rangeshifter.github.io/RangeshiftR-tutorials/
GNU General Public License v3.0
16 stars 5 forks source link

Error in loadNamespace #6

Open hvqd38 opened 1 year ago

hvqd38 commented 1 year ago

Hello,

I am trying to install the RangeShiftR package from GitHub into RStudio using the following line of code:

devtools::install_github("https://github.com/RangeShifter/RangeShiftR-package", ref = "main") install.packages("RangeShiftR")

I have ran this code before and it has worked and successfully installed the package, but on this occasion I am getting an error that I have not seen before. This is the error message:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘fs’ In addition: Warning message: In readLines (file, skipNul = TRUE): cannot open compressed file 'C:/Program Files/AppJ/R/R-4.2.2/library/matrixStats/DESCRIPTION', probable reason 'No such file or directory'

I am able to download the 'fs' package, but then when I try installing 'RangeShiftR' again, it gives the same error but for the package 'cli'.

I am not sure what is going on and was wondering if anyone could help me??

The sessionInfo is: R version 4.2.2 (2022-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server x64 (build 17763)

Matrix products: default

Locale: [1] LC_COLLATE=English_United Kingdom.1252 [2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

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

loaded via namespace (and not attached): see image attached for error messageenter image description here

Screenshot 2023-09-28 at 08 05 39

It may be worth noting that I am running this code through a remote desktop.

Thanks!

JetteReeg commented 1 year ago

Hi, I have a feeling that this issue is not necessarily related to the RangeShiftR-package, but I am happy to try to help and fix the issue. I already tested whether RangeShiftR can be installed with R 4.2.2 (on a linux HPC where the same version is installed) and I was able to installed it without errors.

Could you maybe provide me with more information?

hvqd38 commented 1 year ago

Hi,

Apologies for the delay in response, I have tried running my code on a different Remote Desktop server and it is working so I am assuming it was a faulty connection with the server causing the error.

Thank you for your response!