R-ArcGIS / r-bridge-install

Install the R ArcGIS Tools
Apache License 2.0
188 stars 59 forks source link

R not detected #87

Closed Vrijsen-E closed 3 years ago

Vrijsen-E commented 4 years ago

When I try to 'Install R bindings' in ArcMap, the Selected R Version gives 'R not detected'. The tile is gray. I have R version 3.6.1 installed. What could be the issue and how can I omit this?

image

scdub commented 4 years ago

@Vrijsen-E, the main way that we find R is via the registry. When you install R, there is an option to add it to the registry, and without that setting, we may not be able to detect where R is installed. You can get these entries by reinstalling R and telling it that you'd like to have it set the registry keys, or by manually creating them. For example:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core]

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R]
"InstallPath"="C:\\Program Files\\R\\R-3.6.1"
"Current Version"="3.6.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\3.6.1]
"InstallPath"="C:\\Program Files\\R\\R-3.6.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R64]
"InstallPath"="C:\\Program Files\\R\\R-3.6.1"
"Current Version"="3.6.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R64\3.6.1]
"InstallPath"="C:\\Program Files\\R\\R-3.6.1"

If you saved that text to an "r.reg" file, and changed the path entries where needed, it should be able to be detected by the script. Alternatively, you can follow the offline installation instructions which let you install from directly within R.

scdub commented 3 years ago

No further updates, closing until we have details.