R code env : error installing package

CGB
Level 3
R code env : error installing package

Hi,

I would like install "car" package on my new R code env but I obtain error (cf PJ). I tried to indicate the version of this package and its dependencies but without success. Does anyone have any idea where the problem is coming from and how to fix it?

Thanks in advance !

FYI, I work with DSS 8.0 et R 3.6

 

0 Kudos
4 Replies
sergeyd
Dataiker

Hi @CGB 

There is an issue installing one of the R deps for the package: 

ERROR: dependencies ‘pbkrtest’, ‘lme4’ are not available for package ‘car’

which goes down to this: 

ERROR: configuration failed for package ‘nloptr’

 

You will need to install "NLopt-devel" (RHEL/Centos) or "libnlopt-dev" (Ubuntu/Debian) OS package to get this resolved.

CGB
Level 3
Author

Thanks @sergeyd !

However, when I try to add mentioned package on requested packages, I had this error :

package ‘libnlopt-dev’ is not available (for R version 3.6.0) 

 

Any idea to solve this ?

0 Kudos
sergeyd
Dataiker

This is not an R package. As I mentioned previously this is OS package: 

https://packages.debian.org/sid/libnlopt-dev

So you need to run (assuming you are on Ubuntu/Debian):

sudo apt-get install libnlopt-dev

  

0 Kudos
CGB
Level 3
Author

Thanks, I contact my admin to run this command and install this OS package.

I will complete the post after the test.

0 Kudos