Open Althalis opened 4 months ago
Hello @Althalis,
The issue you are encountering seems to be related to package and R/Rtools installation rather than kopls or rAMOPLS. You need to obtain and install R >= 4.3.2 and the corresponding Rtools (link). Use R 4.3.2 and Rtools 4.3 if you want to be on the exact same version used for developing rAMOPLS but it should work also with R 4.4.x and Rtools 4.4. Some people in this thread have resolved the problem by switching to pak to install the packages from source. You might want to try this approach as well.
I hope this resolves your issue. Please keep me informed if it works.
Hello Sylvain, thank you for the quick reply, indeed I didn't realise that my R tools was outdated. It worked now, I was trying to knit your README.Rmd just to see if all is rolling before I start with my own data!
by the way, FYI, one weird thing occurred, I got an error saying:
Error in FUN()
:
! You need to install future and furr packages to use parallelisation.
But the package is called furrr with three R, so I had to google around a little. It worked afterwards.
Thanks Julie
Dear all, I am struggling to get the 'kopls' package installed. I tried the recommended
rAMOPLS::install_kopls()
which didn't work, see error below.> rAMOPLS::install_kopls()
The following package(s) will be installed:Installing packages --------------------------------------------------------
Installing kopls ... FAILED Error: Error installing package 'kopls':
installing source package 'kopls' ... using staged installation libs gcc -I"C:/PROGRA~1/R/R-44~1.0/include" -DNDEBUG -I"c:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c koplsKernel.c -o koplsKernel.o /bin/sh: line 1: gcc: command not found make: *** [C:/PROGRA~1/R/R-44~1.0/etc/x64/Makeconf:289: koplsKernel.o] Error 127 ERROR: compilation failed for package 'kopls'
removing 'C:/Users/julie/AppData/Local/R/win-library/4.4/.renv/1/kopls' install of package 'kopls' failed [error code 1]
I also downloaded the .zip from sourceforge, and installed it manually through RStudio (R version 4.0.0) via the menu Tools ->Install Packages -> From zip. It's suspiciously quick to give me the
package ‘kopls’ successfully unpacked and MD5 sums checked
. And then the library doesn't load.I tried using devtools
install(zip_file_path)
, but I get this:(function (command = NULL, args = character(), error_on_status = TRUE, ...
: ! System command 'Rcmd.exe' failedExit status: 1 stdout & stderr:
Type .Last.error to see the more details.
I tried with previous versions of R, but it works even less (as in I get all kinds of warning for dependencies).
What do you recommend? Thanks a lot for your help, Julie