sdechaumet / ramopls

Other
2 stars 2 forks source link

Struggling with installation #3

Open Althalis opened 4 months ago

Althalis commented 4 months ago

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 --------------------------------------------------------

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:

Exit 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

sdechaumet commented 3 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.

Althalis commented 3 months ago

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