Hi folks,
We've just installed R 3.6.3, downloaded from CRAN project site, on our SAS Linux server (running RedHat). After the R installation was completed, we tested the R installation through R commands and works fine.
We added the RLANG command and the R_HOME on sasv9.cfg. We verified the path for R_HOME using R.home() command.
After that, we tried to validate if we could call and execute R through SAS EG using:
proc iml;
submit/r;
endsubmit;
quit;
The following errors occurs:
ERROR: SAS could not initialize the R language interface.
ERROR: The R shared library could not be loaded: /usr/local/lib64/R/lib/libR.so
Any help?
Regards,
Thanks. We installed R again using "--enable-R-shlib=yes" option on configuration.
Regards,
I think the issue is still in your definition of the R_HOME variable. You should use the Linux "export" command. In the past, I have successfully installed R on Linux using yum and I used the following export command:
export R_HOME=/usr/lib64/R
Will you try that?
Thanks. We installed R again using "--enable-R-shlib=yes" option on configuration.
Regards,
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.