How to specify (non-R) library path for dynamic library loading in R?

后端 未结 5 1442
逝去的感伤
逝去的感伤 2020-12-14 02:47

I keep getting the following error when attempting to install readxl or haven in R (both dependencies of tidyverse) post-compilation,

5条回答
  •  不思量自难忘°
    2020-12-14 03:08

    I put the export LD_LIBRARY_PATH=... statements into a file ~/.profile. This way, both command line R and RStudio Server are able to find the shared library.

    In my case, I was trying to get the Rglpk package to locate the libglpk.so file. According to Stefaan Lippen's blog entry, the .profile file is the preferred location for these type of configurations not strictly related to bash.

提交回复
热议问题