Skip to content

Struggling with installation #3

@Althalis

Description

@Althalis

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:

  • kopls [1.1.2]
    These packages will be installed into "C:/Users/julie/AppData/Local/R/win-library/4.4".

Installing packages --------------------------------------------------------

  • Installing kopls ... FAILED
    Error: Error installing package 'kopls':
    =================================
  • installing source package 'kopls' ...
    ** using staged installation
    ** libs
    gcc -I"C:/PROGRA1/R/R-441.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:/PROGRA1/R/R-441.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:

  • preparing 'kopls':
    v checking DESCRIPTION meta-information ...
    Warning in file(con, "r") :
    cannot open file 'man': No such file or directory
    ERROR
    computing Rd index failed:cannot open the connection
    Error in (function (command = NULL, args = character(), error_on_status = TRUE, ...:
    ! System command 'Rcmd.exe' failed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions