ilyamaclean / microclima

microclima
30 stars 13 forks source link

Installation from source fails #16

Open stineb opened 3 years ago

stineb commented 3 years ago

This looks like a super useful package. Unfortunately, the installation from source fails for me. Are there binaries available?

Which operating system are you running?

Mac OS X 10.15.7

Which version of R are you using?

4.0.3

What is the problem?

The installation from source fails for me. Gets stuck and nothing happens.

How can we reproduce this? Which functions have you used and with which datasets and parameters?

Just do devtools::install_github("ilyamaclean/microclima")

avmey commented 3 years ago

Installation fails for me as well with this same issue. Forces whole R restart. Mac OS X 10.15.7. R 4.0.3

ilyamaclean commented 3 years ago

Does this solve it:

You may need to start by installing “gfortran”, a free Fortran compiler. To do that, you first will have to Install Xcode from the Mac App Store. Then:

Open the installed Xcode app, agree to the license, and let it install some "components". Install the Xcode command-line tools: Open a Terminal window, by opening the Terminal application (Applications > Utilities > Terminal) Type “xcode-select –install” and follow the dialogs that open. Download gfortran by clicking the appropriate following link: gfortran 8.2 for Mojave (macOS 10.14) https://github.com/fxcoudert/gfortran-for-macOS/releases/download/8.2/gfortran-8.2-Mojave.dmg gfortran 6.3 for Sierra (macOS 10.12) https://github.com/fxcoudert/gfortran-for-macOS/releases/download/6.3/gfortran-6.3-Sierra.dmg Open the downloaded .dmg file and run the gfortran installer, follow the dialogs. Now you are ready to install R package microclima. You will need to install the microclima package from Github. To install packages from Github you will need the package devtools:

install.packages(“devtools”) devtools::install_github("ilyamaclean/microclima")

LinaMorenoAzocar commented 3 weeks ago

I had the same issue on Windows 10, R version 4.4.1, this are the messages during instalation: Downloading GitHub repo ilyamaclean/microclima@HEAD ── R CMD build ─────────────────────────────────────────────────────────────────

checking for file 'C:\Users\Win\AppData\Local\Temp\RtmpIfbqy5\remotes50fc40836e30\ilyamaclean-microclima-7de0b4b/DESCRIPTION' ...

checking for file 'C:\Users\Win\AppData\Local\Temp\RtmpIfbqy5\remotes50fc40836e30\ilyamaclean-microclima-7de0b4b/DESCRIPTION' ...

✔ checking for file 'C:\Users\Win\AppData\Local\Temp\RtmpIfbqy5\remotes50fc40836e30\ilyamaclean-microclima-7de0b4b/DESCRIPTION' (433ms)

─ preparing 'microclima': checking DESCRIPTION meta-information ...

checking DESCRIPTION meta-information ...

✔ checking DESCRIPTION meta-information ─ cleaning src

─ checking for LF line-endings in source and make files and shell scripts (605ms)

─ checking for empty or unneeded directories

─ building 'microclima_0.1.0.tar.gz' (371ms) Installing package into ‘C:/Users/Win/AppData/Local/R/win-library/4.4’ (as ‘lib’ is unspecified)

** libs

using C++ compiler: 'G__~1.EXE (GCC) 13.2.0'

g++ -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG -I'C:/Users/Win/AppData/Local/R/win-library/4.4/Rcpp/include' -I"C:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"C:/PROGRA~1/R/R-44~1.1/include" -DNDEBUG -I'C:/Users/Win/AppData/Local/R/win-library/4.4/Rcpp/include' -I"C:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c invls.cpp -o invls.o g++ -std=gnu++17 -shared -s -static-libgcc -o microclima.dll tmp.def RcppExports.o invls.o -LC:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools44/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-44~1.1/bin/x64 -lR installing to C:/Users/Win/AppData/Local/R/win-library/4.4/00LOCK-microclima/00new/microclima/libs/x64

R data * moving datasets to lazyload DB byte-compile and prepare package for lazy loading Error en loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): no hay paquete llamado 'rnoaa' Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Ejecución interrumpida ERROR: lazy loading failed for package 'microclima'

Winniesl commented 1 week ago

I have the same issue as well. it forces R to stop working.

installing to /Users/LLSS/Library/R/arm64/4.4/library/00LOCK-microclima/00new/microclima/libs R data * moving datasets to lazyload DB byte-compile and prepare package for lazy loading

ilyamaclean commented 1 week ago

I am no longer keeping this package maintained as we are decommisioning it in favour of our new package microclimf and it is too time consuming to keep on top of and bi-pass all issues caused by changes to packages that are dependencies of microclima that I do not maintain. The solution to the above is to install the rnoaa package from archive and then install microclima. https://cran.r-project.org/src/contrib/Archive/rnoaa/