Installing Rglpk on linux

后端 未结 3 926
慢半拍i
慢半拍i 2021-01-19 01:01

I am trying to install Rglpk using the install.packages command. I am getting this error : /bin/sh: line 0: cd: GLPK: No such file or directory make: *** [GLPK.ts] Error 1

3条回答
  •  不知归路
    2021-01-19 01:45

    My experience was the following as a sudoer:

    1. install GLPK package: see https://en.wikibooks.org/wiki/GLPK/Linux_OS

    2. install Rglpk:

    # install devtools package beforehand. Or, you can download the Rglpk package manually, and then install in R.

    # note that the latest version of Rglpk does not work on my Redhat system. Instead, the version 0.6-0 works perfectly.

    devtools::install_url("https://cran.r-project.org/src/contrib/Archive/Rglpk/Rglpk_0.6-0.tar.gz")

    Testing: in R, try require(Rgplk)

提交回复
热议问题