ZFY
ZFY

Reputation: 135

RInside cannot find system Renviron with compiled R

my RInside program test_rinside runs well on server with R installed from ubuntu 14.04 sources. After switching to a server with R compiled manually, the RInside program reports fatal error:

cannot find system Renviron
Fatal error: unable to open the base package

Both two servers prints nothing for environment variable R_HOME. On the compiled R server, the program runs ok if R_HOME is manually assigned to /usr/local/lib64/R, which is R root on the server.

I'm not familiar with the mechanism of R_HOME. what else can I do to run RInside program test_rinside normally without manually specify R_HOME? Thanks!

Upvotes: 1

Views: 1799

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368519

Your error is in your assumptions: you cannot copy from one system to another if the underlying components have different locations.

Just rebuild on machine two, or just identical layouts (and even in that case I recommend packages -- we do have r-cran-rinside as well).

Upvotes: 1

Related Questions