2
$\begingroup$

Cannot run RLink in mathematica in Catalina. I get a failed error even though the paclet loads. Any pointers?

$\endgroup$
5
  • 3
    $\begingroup$ Can you, please, provide here the code you have used and the specific error that was returned? This will help us to better help you! $\endgroup$ Mar 13 '21 at 1:01
  • 2
    $\begingroup$ I reported this a while ago to WRI. In 12.2 RLink doesn't work with the build in version of R. In my opinion this doesn't matter so much because the build in one is quite old. Instead install and use an external version of R. This works even with R 4.0 quite well. There are a couple of posts on this site how to do this. You can also go to Szabolt's page: szhorvat.net/pelican/setting-up-rlink-for-mathematica.html $\endgroup$
    – Philipp
    Mar 13 '21 at 10:19
  • $\begingroup$ Thank you so much. Here is the code I ran. $\endgroup$ Mar 14 '21 at 16:56
  • $\begingroup$ In[3]:= RLinkResourcesInstall[Update -> True] $\endgroup$ Mar 14 '21 at 16:56
  • $\begingroup$ Out[3]= {PacletObject[RLinkRuntime, 9.0.0.0, <>]} In[4]:= InstallR[] InstallR::badpaclet: Could not find a path to R runtime. Possibly the installed RLink runtime is corrupt, try re-installing it using RLinkResourcesInstall with an option Update->True Out[4]= $Failed $\endgroup$ Mar 14 '21 at 16:57
4
$\begingroup$

This will be fixed in a matter of a few weeks, we do have more recent versions of R (3.6.x) in the works, to be bundled for RLink for Mac and Windows (the support for bundled R will be dropped for Linux). In the mean time, in addition to the link provided in comments, have a look also at this Q/A on Wolfram Community, where the procedure to use external R distribution has been described in detail.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.