Using Mathematica 12.1.0.0 on Mac OS 10.14
Attemping to use my version of R
Tried using:
Needs["RLink`"]
JLink`UninstallJava[]
InstallR["RVersion" -> "3.61",
"RHomeLocation" ->
"/Users/james2/opt/anaconda3/envs/Rtest/lib/R/library",
"NativeLibLocation" ->
"/Users/james2/opt/anaconda3/envs/Rtest/lib/R/library/rJava/jri"]
Received error message: Failed to install R. The following error was encountered:crash in low-lever RLink component or in R runtime
"RVersion" -> "3.6.1"(you missed the dot between6and1, which could make it impossible for RLink to parse the version number), and second, you might want to point"RHomeLocation"to just"/Users/james2/opt/anaconda3/envs/Rtest/lib/R", without the lastlibrarysubfolder. If this doesn't work, it might help to attach the screenshot of your folder structure for R. – Leonid Shifrin Apr 29 '20 at 20:32R.home()there - that should give the path to set"RHomeLocation"to. – Leonid Shifrin Apr 29 '20 at 20:32