R-ArcGIS / r-bridge-install

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

Manual install appears to work then running a tool it fails #39

Closed nickhmorgan closed 7 years ago

nickhmorgan commented 7 years ago

Hi

hoping you can help

I carried out a manual install as https://github.com/R-ArcGIS/r-bridge-install/issues/33 this all checks out as installed when running RInstall Details (see bottom). This is on server without internet access

When I try sample tools from the sample projects I get:

Running script ModelBasedClustering... Cannot find 'rarcproxy.dll'. Plese install Rintegration package. Failed to execute (ModelBasedClustering).

Executing: RInstallDetails Start Time: Wed Jan 04 17:10:16 2017 Running script RInstallDetails... R (version 3.3.2), installed in: C:\Program Files\R\R-3.3.2 R packages will be installed into: C:\Program Files\R\R-3.3.2\library All R package libraries detected: C:\Program Files\R\R-3.3.2\library The ArcGIS R package (version 1.0.0.124) is installed at: C:\Program Files\R\R-3.3.2\library\arcgisbinding Completed script RInstallDetails... Succeeded at Wed Jan 04 17:10:16 2017 (Elapsed Time: 0.15 seconds)

scw commented 7 years ago

Hello @nickhmorgan,

What version of ArcGIS are you using? Could you try opening an R session, and run

library(arcgisbinding)
arc.check_product()

Does that run correctly?

nickhmorgan commented 7 years ago

Thank you Shaun

That looks clear I’ll try 32 bit R

I’m using ArcGIS 10.3.1

library(arcgisbinding) *** Please call arc.check_product() to define a desktop license. arc.check_product() Error: Could not bind to a valid ArcGIS Pro installation. Found ArcGIS Desktop (32-bit) Version 10.3.4959. You'll need to use the 32-bit version of R.

Nick Morgan Senior GIS Analyst Geo Apps Met Office Fitzroy Road Exeter Devon EX1 3PB Tel: 44 (0)1392 886305 Fax: 44 (0)1392 885681 Email: nick.morgan@metoffice.gov.ukmailto:tony.stevens@metoffice.gov.uk Web: http://www.metoffice.gov.ukhttp://www.metoffice.gov.uk/

From: Shaun Walbridge [mailto:notifications@github.com] Sent: 04 January 2017 17:35 To: R-ArcGIS/r-bridge-install Cc: Morgan, Nick; Mention Subject: Re: [R-ArcGIS/r-bridge-install] Manual install appears to work then running a tool it fails (#39)

Hello @nickhmorganhttps://github.com/nickhmorgan,

What version of ArcGIS are you using? Could you try opening an R session, and run

library(arcgisbinding)

arc.check_product()

Does that run correctly?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/R-ArcGIS/r-bridge-install/issues/39#issuecomment-270433207, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXxBXMqGwC4GGf98WpSnKF9AL9lIdUA3ks5rO9gygaJpZM4La2hy.

dpavlushko commented 7 years ago

For ArcGIS 10.3.1 you need one extra step to complete install. Open Command Prompt cmd.exe and execute following commands (change path if needed):

mkdir "C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration"
mklink /J "C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration\arcgisbinding" "C:\Program Files\R\R-3.3.2\library\arcgisbinding"

To validate symlink browse to C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration and click on arcgisbinding folder, explorer should open it.

nickhmorgan commented 7 years ago

Thanks Shaun it ran OK in the R session but still had issues with accessing a dll when running a sample tool.

Thank you dpavlushko the mklink the sample tool worked (it did demand write access to the R library directory.

nickhmorgan commented 7 years ago

Thank you that worked

From: Dmitry Pavlushko [mailto:notifications@github.com] Sent: 04 January 2017 21:48 To: R-ArcGIS/r-bridge-install Cc: Morgan, Nick; Mention Subject: Re: [R-ArcGIS/r-bridge-install] Manual install appears to work then running a tool it fails (#39)

For ArcGIS 10.3.1 you need one extra step to complete install. Open Command Prompt cmd.exe and execute following commands (change path if needed):

mkdir "C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration"

mklink /J "C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration\arcgisbinding" "C:\Program Files\R\R-3.3.2\library\arcgisbinding"

To validate symlink browse to C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration and click on arcgisbinding folder, explorer should open it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/R-ArcGIS/r-bridge-install/issues/39#issuecomment-270496565, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXxBXPSV9g3CI7VUMc1ssVVNZxe4mCmfks5rPBOhgaJpZM4La2hy.