Giter Club home page Giter Club logo

r-bridge-install's Introduction

Install the R-ArcGIS Bridge

Install and update the R-ArcGIS bridge with this Python toolbox.

NOTE: If you encounter problems, please create an issue so that we can take a look.

Prerequisites

  • 32-bit version required for ArcMap, 64-bit version required for ArcGIS Pro (Note: the installer installs both by default).
  • 64-bit version can be used with ArcGIS Pro, or with ArcMap by installing Background Geoprocessing and configuring scripts to run in the background. NOTE: Background Geoprocessing only allows using the bridge from ArcGIS, not from within R itself.

Installation

First, make sure you've installed an appropriate version of R, 3.5 or later.

If you need to install offline, follow the offline installation instructions.

The clip below shows how to download, install and verify proper installation of the bridge:

ArcGIS 10.3.1+

  • In the Catalog window, navigate to the folder containing the Python Toolbox, R Integration.pyt. Note: You may have to first add a folder connection to the location that you extracted the files or downloaded via GitHub.
  • Open the toolbox, which should look like this:

  • Run the Install R bindings script. You can then test that the bridge is able to see your R installation by running the Print R Version and R Installation Details tools, and running the included sample tools.

ArcGIS Pro 1.1+

  • In the Project pane, either navigate to a folder connection containing the Python toolbox, or right click on Toolboxes > Add Toolbox and navigate to the location of the Python toolbox.
  • Open the toolbox, which should look like this:

  • Run the Install R bindings script. You can then test that the bridge is able to see your R installation by running the Print R Version and R Installation Details tools, and running the included sample tools.

If everything worked, you should be ready to start! See Next Steps for where to go from here. Remember, you can update the package at any time by running the 'Update R bindings' script.

Offline Installation

  • From a machine that does have internet access:
  • Copy both zip files onto the machine that you're targeting offline installation. Extract the r-bridge-install zip. Place the arcgisbinding_1.0.0.122.zip into the same directory as the "R Integration" Python toolbox.
  • Run the installation procedure as listed above.

Problems Installing?

  • A few things to check :
    • All prerequisites have been met, such as the right version of R for your platform, and a current release of ArcGIS.
    • Make sure that your user has administrator access, and try running ArcGIS as an Administrator:
    • Start ArcGIS as an administrator, by right clicking the icon, selecting 'Run as Administrator', then trying the script
    • If that doesn't work, the package directory, "arcgisbinding", that gets installed into the R folder (usually, C:\Users<username>\Documents\R\win-library) into the requested place, C:\Program Files (x86)\ArcGIS\Desktop\Rintegration
    • On Windows 7, KB2533623 must be installed. Without this hotfix, the library will generate the error "The procedure entry point AddDllDirectory could be located".
  • The release can be manually installed into R, as shown in this screencast. Use this if you're planning on mostly working from R.
  • Still stuck? Add an issue and we'll take a look. (More about GitHub Issues)

Next Steps

Additional resources and discussion at the R-ArcGIS project on GeoNet

Want to use tools others have developed?

  • See how complex problems can be solved with R and ArcGIS in the Sample Tools, such as model-based clustering and combining parametric and non-parametric models with semiparametric regression.
  • Check out the community page for more tools Coming Soon

Want to develop new tools using R?

Credits

This toolbox depends on the R Statistical Computing Software:

Copyright (C) 2015 The R Foundation for Statistical Computing R is free software and comes with ABSOLUTELY NO WARRANTY. See the COPYRIGHTS file for details.

This toolbox depends on ntfsutils:

(c) 2012 the Mozilla Foundation and others, licensed under the Simplified BSD License. See the LICENSE file for details.

License

Apache 2.0

r-bridge-install's People

Contributors

aicelm avatar scdub avatar scw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r-bridge-install's Issues

Offline install not working

The offline install option isn't working. The problem appears to be that the call to release_info() never returns, i.e., calls sys.exit() instead of returning None as install_package.py seems to expect.

Output:

Executing: InstallBindings false
Start Time: Thu May 26 16:19:05 2016
Running script InstallBindings...
Failed to download 'https://api.github.com/repos/R-ArcGIS/r-bridge/releases/latest', error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Completed script InstallBindings...
Failed to execute (InstallBindings).
Failed at Thu May 26 16:19:26 2016 (Elapsed Time: 21.14 seconds)

Handle DLL loading

Before installation, we should check that users haven't currently loaded the DLL. If the DLL is currently loaded, R can't remove the existing package from the library, and the installation fails.

R Integration.pyt displays as broken (x)

Hi, developers,

I am. I am very sorry to bother you again by this issue.
I use ArcGIS 10.3.1 (and tried ArcGIS 4, too) and have installed the latest version of R 3.3.2.
The problem I am facing is that empty "R Integration.pyt," may be caused by ASCII.
It says that "ascii' codec can't decode byte 0x8e in position 10: ordinal not in range(128),"
The folder "r-bridge-install-master" is at C:. I am very happy if you can suggest the hint to
solve this problem.

Thanks,
Hajime
image

Installation Problem

Hello Developers,

I am having the same issue that alice1020 is having. My screen looks the same with a red x on the R Integration toolbox. Any suggestions with how to fix this would be great.

Thanks,
Yannik

Error in .Call("arc_error", msg, PACKAGE = "rarcproxy") after Offline installation

Hi, guys,

We need your investigation and assistance ...

Firstly, without firewall, all with R-ArcGIS Bridge 1.0.0.124, including installation and running R models within ArcGIS, are fine. Excellent effort ....

Secondly, with "offline" installation of R-ArcGIS Bridge behind the firewall, the process looks fine (not completely sure).

We got: Error in .Call("arc_error", msg, PACKAGE = "rarcproxy"), once Run the sample 'Model Based Cluster' and other models in ArcGIS.

The details are as follows:

Part 1: Offline Install R bindings:

Executing: InstallBindings true 3.2.5
Start Time: Sun Apr 16 07:49:09 2017
Running script InstallBindings...
Unable to access'https://api.github.com/repos/R-ArcGIS/r-bridge/releases/latest', error: UnauthorizedBrowser.
Unable to get current release information. Trying offline installation.
Found local copy of binding, installing from zip
Rcmd.exe INSTALL d:\users...\appdata\local\temp\tmp4svrl2\arcgisbinding_1.0.0.124.zip
'C:\Program' is not recognized as an internal or external command,
R command returned non-zero exit status.
Rscript.exe d:\users...\appdata\local\temp\tmp4svrl2\install.R
package 'arcgisbinding' successfully unpacked and MD5 sums checked
Installing package into 'D:/Users/.../Documents/R/win-library/3.2'
(as 'lib' is unspecified)
Completed script InstallBindings...
Succeeded at Sun Apr 16 07:49:18 2017 (Elapsed Time: 9.79 seconds)

Part 2: After RUN the sample 'Model Based Cluster' on the above installation:

Executing: ModelBasedClustering spruce_trees D:\Users...\Documents\ArcGIS\Default.gdb\spruce_trees_ModelBasedClust # # #
Start Time: Sun Apr 16 07:50:29 2017
Running script ModelBasedClustering...
Error in .Call("arc_error", msg, PACKAGE = "rarcproxy") :
"arc_error" not available for .Call() for package "rarcproxy"

Completed script ModelBasedClustering...
Succeeded at Sun Apr 16 07:50:31 2017 (Elapsed Time: 1.43 seconds)

unable to run 'Install R bindings' script

I'm unable to run the 'install R bindings' script in ArcGIS Pro 1.1 (as administrator) with R 3.2.2

Running Windows 8.1 x64 on VMware Fusion

Any help is very appreciated!
A.

Running script InstallBindings...
Traceback (most recent call last):
File "", line 164, in execute
File "C:\Users\Ansley Charbonneau\Documents\r-bridge-install-master\r-bridge-install-master\rtools\install_package.py", line 126, in install_package
r_integration_dir = os.path.join(arcmap_install_path, "Rintegration")
File "c:\program files\arcgis\pro\bin\Python\lib\ntpath.py", line 108, in join
result_drive, result_path = splitdrive(path)
File "c:\program files\arcgis\pro\bin\Python\lib\ntpath.py", line 159, in splitdrive
if len(p) > 1:
TypeError: object of type 'NoneType' has no len()
Failed to execute (InstallBindings).

Check version from registry

Currently only does string parsing, but this will fail if the directory name is customized. Try "Current Version" key, then fall back on parsing.

Why the dependency upon 10.3.1?

Is there anything special with 10.3.1 that R-bridge is dependent on it?
I suppose it can be used in standalone mode(R script). But to make use of geoprocessing framework, 10.3.1 is needed! Am I right?

I need to use it with 10.2.2.

Question about rarcproxy.dll

Greetings!

I really like the idea of having ready access to the R program through ArcGIS. Unfortunately, I am having a problem which I hope has a straightforward solution.

I installed the "arcgisbinding" package for R and get the correct build number for the version of ArcGIS I use (10.3.1). The output from arc.check_product() says "binding dll: rarcproxy." When I run the "R Installation Details" script from within ArcGIS, I receive the correct version of R (3.2.1) in the correct location (H:\R\R-3.2.1).

But when I attempt to run the semiparametric regression tool (I obtained it from here: https://github.com/R-ArcGIS/r-sample-tools), I receive the error:

Start Time: Wed Dec 02 14:02:52 2015
Running script SemiparametricRegression...
Cannot find 'rarcproxy.dll'.
Plese install Rintegration package.
Failed to execute (SemiparametricRegression).

Is there a way that I can troubleshoot this problem? The two programs seem to see each other, but the error suggests otherwise.

Thank you for your time!

Need help with arcgisbinding in R

Hi,

I am trying to use the arcgisbinding package in R to make a tool for arcgis, but it is not working. The r-bridge-install-master went well in arcmap. The R Script Examples toolbar worked also very good in arcma. When I used the qqplots it returned 4 plots from R in arcmap. But when I tried to check if the arcgis binding package in R had the right license i got an error in R.

When:

library(arcgisbinding)
arc.check_product()

R returns
error

R version 3.2.4 and arcgisbinding is shown as package in R
ArcMap version 10.4

hopefully somebody can help me with this problem.

With kind regards,

Pieter

will not install in PC without admin right

The install script does not run on PC without admin right due to the registry writing task. I manually changed the rpath.py to force it write to HKCU, then it worked.

root_keys = OrderedDict((
        # try HKLM, then HKCU
        ('HKCU', winreg.HKEY_LOCAL_MACHINE),
        ('HKCU', winreg.HKEY_CURRENT_USER)
    ))

please make a change in professional way :)

Error: Could not bind to a valid ArcGIS Pro installation.

I looked into the other issues that were raised on this error but that didn't help.
I use

  • ArcGIS Pro with licences Advanced, v1.3.1.5861, valid till 31-12-2016
  • R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
  • R-ArcGIS bridge commit c005f4e

The toolbox was successfully installed and the check with Print R Version gave the correct result. So far so good.
In R however I get the following result:

> require(arcgisbinding)
Loading required package: arcgisbinding
*** Please call arc.check_product() to  define a desktop license.
> arc.check_product()
Error: Could not bind to a valid ArcGIS Pro installation

Any ideas how to solve this?

R-ArcGIS/r-bridge-install

capture

I'm in the process of installing the R-bridge. When connecting to the folder from ArcMap, the "toolbox" appears with a red X over - see attached snapshot.

I'm using ArcMap 10.5, R 32-bit 3.2.0 and the R-bridge version listed under the "Code" heading of this site. Thank you for any assistance you may be able to provide. - James

Can't install R bindings

The report shows

Executing: InstallBindings false
Start Time: Mon May 30 21:33:25 2016
Running script InstallBindings...
Saving URL to 'c:\users\admini~1\appdata\local\temp\arc35a2\tmpbed2zc\arcgisbinding_1.0.0.118.zip'

Traceback (most recent call last):
File "", line 164, in execute
File "I:\r-bridge-install-master\rtools\install_package.py", line 214, in install_package
execute_r('Rcmd', 'INSTALL', package_path)
File "I:\r-bridge-install-master\rtools\bootstrap_r.py", line 30, in execute_r
os.putenv("PATH", ";".join([rcommand_dir, sys_path]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 944: ordinal not in range(128)

Failed to execute (InstallBindings).
Failed at Mon May 30 21:33:28 2016 (Elapsed Time: 2.23 seconds)

Update R Bindings fails to execute

Running script UpdateBindings... Traceback (most recent call last): File "<string>", line 47, in execute File "~\Downloads\r-bridge-install-master\r-bridge-install-master\rtools\update_package.py", line 28, in update_package validate_environment() TypeError: validate_environment() missing 1 required positional argument: 'overwrite' Failed to execute (UpdateBindings).`

MRO 3.2.5, had to run Arc Pro as administrator, but also successfully installed downloading the R package as well.

And one other question, is this just installing an R package, or is it updating things in AcrGIS Pro with python? If it is just installing an R package, why not just use devtools::install_github() ? This is what the manual install seems to be instructing but in a manual fashion.

R Integration Toolbox not opening. Red exclamation point "!" instead

ArcGIS Pro 2.0.1
R version 3.4.2 (2017-09-28)

r-sample-tools-install

Parsing error:
Traceback (most recent call last):
File "C:\Users\cori\GitHub\r-bridge-install\rtools\rpath.py", line 446, in r_pkg_path
package_path_key = winreg.QueryValueEx(pro_reg, package_key)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 8, in
File "C:\Users\cori\Downloads\r-bridge-install-master\r-bridge-install-master\rtools_init_.py", line 17, in
from .install_package import install_package
File "C:\Users\cori\Downloads\r-bridge-install-master\r-bridge-install-master\rtools\install_package.py", line 45, in
PACKAGE_VERSION = r_pkg_version()
File "C:\Users\cori\GitHub\r-bridge-install\rtools\rpath.py", line 476, in r_pkg_version
r_package_path = r_pkg_path()
File "C:\Users\cori\GitHub\r-bridge-install\rtools\rpath.py", line 451, in r_pkg_path
handle_fnf(error)
File "C:\Users\cori\GitHub\r-bridge-install\rtools\rpath.py", line 51, in handle_fnf
log_exception(exception)
File "C:\Users\cori\GitHub\r-bridge-install\rtools\rpath.py", line 65, in log_exception
log.debug("Exception generated: {}".format(str(err).decode(enc, 'ignore')))
AttributeError: 'str' object has no attribute 'decode'

ArcGIS Pro 1.4.1 running R scrtipt Failed

hi:
i install R and R -bridge success.
ArcMap running R script success.
but ArcGIS Pro running print
Running script Script...
*** Please install the ArcGIS R integration package
Failed to execute (Script).

and ArcGIS Pro install R-bridge success:

Running script RInstallDetails...
R (version 3.3.1), installed in: D:\Program Files\R\R-3.3.3
R packages will be installed into: D:\Program Files\R\R-3.3.3\library
All R package libraries detected: D:\Program Files\R\R-3.3.3\library;D:\Program Files\R\R-3.3.3\library
The ArcGIS R package (version 1.0.0.124) is installed at: D:\Program Files\R\R-3.3.3\library\arcgisbinding
Completed script RInstallDetails...
Succeeded at 2017年3月13日 15:33:05 (Elapsed Time: 0.08 seconds)

need you help
thank you!

Can't install R bindings

Shows me this error massage:
"* installing to library 'D:/Users/Documents/R/win-library/3.2'
Unable to locate R package library. Link failed.
Completed script InstallBindings...
Failed to execute (InstallBindings)."
I run .libPaths() in R check my library path, gives me :
"D:/Users/Documents/R/win-library/3.2" "C:/Program Files/R/R-3.2.5/library"

Cannot run the 'install R bindings script'

Hello,
using Arcgis 10.3.1
R 3.2.2

I'm having trouble running the 'Install R bindings script'. Here comes the message I get.
Any help appreciated.
Julien

Traceback (most recent call last):
File "", line 177, in execute
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolbox\Toolboxes\r-bridge-install-master\rtools\install_package.py", line 62, in install_package
download_url = release_info()[0]
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolbox\Toolboxes\r-bridge-install-master\rtools\github_release.py", line 67, in release_info
json_r = parse_json_url(latest_url)
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolbox\Toolboxes\r-bridge-install-master\rtools\github_release.py", line 44, in parse_json_url
url, e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 58: ordinal not in range(128)

Failed to execute (InstallBindings).

R Integration.pyt displays as broken (x)

I downloaded bridge(as zip), extracted and connect to the parent folder with ArcGIS Catalog. The "R Integration.pyt" show red X and does not expand to reveal install scripts. Opening the items description in the context menu(right mouse down on pyt) results in "The item's XML contains errors."
I'm running with a trial version of ArcGIS 10.3.1 on Windows 8. R 3.2.3 is installed.
Ron

Installation Problem

Dear developers,
I am trying to get started with R-ArcGIS bridge, however, I am stucked int he installations process.
I have updated R to the version 3.3.1.
I have installed ArcGIS. ArcMap version 10.4.1 32-bit.
I have downloaded the zip file "r-bridge-install-master.zip".
I have unzipped the folder.
I have opened ArcMap and I have done the conncetion to the unzipped folder.
The toolbox looks empty:
image
If I open "Item Description" the wondow says: The item's XML contains errors.
What should I do?
Many thanks in advance!

Alice

Installation Problem Type 2

Hello Developers,

I submitted an issue yesterday and today I am getting a different problem on a different computer. I have attached pictures of what issue is arising. This time, I can get within the toolbox but when I click on the Install R binding script, a red arrow is in the dialog box. The error states: " Traceback (most recent call last): File "", line 230, in updateParameters AttributeError: 'NoneType' object has no attribute 'keys' "

Any advise would be great.

Thanks,
Yannik

rbridge_issue.docx

Cannot install to default package directory

I use ArcGIS Pro on a VM. R was installed by our admin in a drive in which I cannot write. So when I try to run the install package in ArcGIS Pro it fails because it is trying to write to C: drive. I tried using the manual install in R, but it still tried to install in the default directory. I have tried to install using install.packages() command in R but I'm not sure I've set all the options correctly. Besides it seems that the zip file that I get from the github download is not the one that install.packages is looking for. How to proceed?

can't install R-integration into arcmap

Hey, I think it was already posted here on github, but without any response. So, Im sorry about doble posting, but I have the same issue.

I have student licence of arcgis 10.3.1 and latest R 3.2.3. I tried to run python scripts through arcmap folder connections but, I can't see any. The only thing I see is the basic structure of r-bridge-install-master, that I have on my desktop ("img", "rtools", "R Integration").

I tried to move this folder elsewhere, run arcmap as administrator, reloading the folder, nothing helped. Are there any ideas how to overcome this behaviour?

Thanks

Lukas

Install Bindings Failure

Executing: InstallBindings false
Start Time: Tue Jul 28 18:36:46 2015
Running script InstallBindings...
https://github.com/R-ArcGIS/r-bridge/releases/download/v1.0.0.111/arcgisbinding_1.0.0.111.zip
Saving URL to 'c:\users\tcronin\appdata\local\temp\arc5412\tmpijjw4k\arcgisbinding_1.0.0.111.zip'

  • installing to library 'C:/Program Files/R/R-3.1.2/library'
    R command returned non-zero exit status.

Traceback (most recent call last):
File "", line 177, in execute
File "C:\1GIS\PythonProjects\RBridge\r-bridge-install-master\rtools\install_package.py", line 99, in install_package
os.makedirs(r_integration_dir)
File "C:\Python27\ArcGIS10.3\Lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: [Error 5] Access is denied: u'c:\program files (x86)\arcgis\desktop10.3\Rintegration'

Failed to execute (InstallBindings).
Failed at Tue Jul 28 18:36:49 2015 (Elapsed Time: 2.17 seconds)

Problem Installing ArcGIS Bindings v 1.0.0.124

I am encountering the following error in ArcCatalog when attempting to Install R Bindings:

_Executing: InstallBindings true 3.3.3
Start Time: Mon Mar 13 13:01:10 2017
Running script InstallBindings...

Traceback (most recent call last):
File "", line 248, in execute
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration\r-bridge-install-master\r-bridge-install-master\rtools\install_package.py", line 150, in install_package
(install_dir, arc_version, product) = arcgis_platform()
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\Rintegration\r-bridge-install-master\r-bridge-install-master\rtools\install_package.py", line 69, in arcgis_platform
info = arcpy.GetInstallInfo()
AttributeError: 'module' object has no attribute 'GetInstallInfo'

Failed to execute (InstallBindings).
Failed at Mon Mar 13 13:01:10 2017 (Elapsed Time: 0.01 seconds)_

Background Info:

  • I have tried installing KB2533623 on Windows 7, but am told the patch does not apply to my system
  • I successfully installed R "Installed package(s) from local files." The local files were saved to this location: C:\Program Files (x86)\ArcGIS\Desktop10.x\Rintegration
  • After running arc.check_product in R.386.3.3.3 the following info was returned: product = ArcGIS Desktop (10.3.1.4559), License = Advanced
  • I have tried the offline installation of R and R Bindings
  • I have tried saving to and running Install R Bindings in ArcCatalog from the following locations and receive the error above for BOTH locations: • C:\Program Files\R\R-3.3.1 • C:\Program Files (x86)\ArcGIS\Desktop10.x\Rintegration
  • I am an administrator on my machine and I logged in as an administrator. I also ran ArcCatalog as an administrator and have been greeted with the error above for both

Thank you and Please Help!!!!

Error while running R arcbinding script

Hi there,
I am now having the same error message in calling rarcproxy as in #3,
I was following the instructioins in the course
"_Part 1 of a two-part webinar series on integrating the statistical programming language R with Esri's ArcGIS for Desktop.

Cameron Plouffe of the Esri Canada Education and Research group covers several basic R programming concepts and manipulating data frames using Hadley Wickham's "dplyr" package, and then demonstrates how you can use the new R-ArcGIS bridge to interface directly to ArcGIS geodatabases within R.

Slide deck:http://slides.com/camplouffe/integrating-r-with-arcgis
Webinar materials: https://github.com/cplouffe/r-arcgis-webinar

Integrating R with ArcGIS (Part 2): https://www.youtube.com/watch?v=TNnCgQ-jG2I

Categoría
    Gente y blogs 
Licencia
    Licencia de YouTube estándar_ "

When going through the Part 1 video of the course, everything seemed to go ok. It is when I tried to add the R script as a tool in arctoolbox (Part 2 of the course after performing the ANOVA analysis) that I had the message:
Executing: Script toronto_crime Drug_Arrests Population 4 C:\Users\josesevilla\Documents\ArcGIS\Default.gdb\toronto_crime_Script2 C:\Users\josesevilla\Documents\ArcGIS\Default.gdb\toronto_crime_Script3
Start Time: Mon Jul 18 10:34:08 2016
Running script Script...
Error in .Call("arc_error", msg, PACKAGE = "rarcproxy") :
"arc_error" not available for .Call() for package "rarcproxy"
Completed script Script...
Succeeded at Mon Jul 18 10:34:09 2016 (Elapsed Time: 1,07 seconds)

I tried running ArcMAP as Administrator but to no avail...

Error while running binding install script

I am trying to run the "Install R Bindings" from the "R Integration.pyt" and get the error below. I have ArcGIS 10.3.1 and R 3.2.1. I have tried the suggested troubleshooting techniques on the main github page but have had no success. It looks like it is having trouble reading the .py scripts but I could be mistaken. Is anyone else having this problem or does anyone have any suggestions on where to go from here? I've copy and pasted the details from the geoprocessing window in Arc.

Executing: InstallBindings true
Start Time: Mon Aug 10 16:34:41 2015
Running script InstallBindings...
https://github.com/R-ArcGIS/r-bridge/releases/download/v1.0.0.111/arcgisbinding_1.0.0.111.zip
Saving URL to 'c:\users\susanr~1\appdata\local\temp\arcc146\tmpxqfp7t\arcgisbinding_1.0.0.111.zip'

Traceback (most recent call last):
File "", line 177, in execute
File "C:\Dan\arcgisbindingR\r-bridge-install-master\rtools\install_package.py", line 77, in install_package
execute_r('Rcmd', 'INSTALL', package_path)
File "C:\Dan\arcgisbindingR\r-bridge-install-master\rtools\bootstrap_r.py", line 15, in execute_r
if r_install_valid():
File "C:\Dan\arcgisbindingR\r-bridge-install-master\rtools\bootstrap_r.py", line 71, in r_install_valid
valid = path_exists(r_install_path)
File "C:\Dan\arcgisbindingR\r-bridge-install-master\rtools\bootstrap_r.py", line 65, in path_exists
if os.path.exists(path):
File "C:\Python27\ArcGIS10.3\Lib\genericpath.py", line 18, in exists
os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Failed to execute (InstallBindings).
Failed at Mon Aug 10 16:34:53 2015 (Elapsed Time: 11.42 seconds)

Cheers,
Dan

Installation Error

Hey Shaun,

Attached should be a few screen shots of what is happening with the updated zip file. This is occurring on the computer that was having the traceback error. I will also try the new zip file on another computer that was having the red x issue which is a laptop. The current problem is that the dialog box is requesting a "Selected R Version" but will not allow me to input any value.

Thanks,
Yannik

installation_error.docx

C:\Program' is not recognized as an internal or external command,

I installed on my laptop no problem, but on my desktop (trying in both ArcGIS Pro 1.2 and ArcMap 10.4, run as Administrator) I get the message below:

Messages
Start Time: Tue Apr 05 13:50:13 2016
Running script InstallBindings...
Saving URL to 'C:\Users\rswett\AppData\Local\Temp\ArcGISPro6804\tmpmg4a5rna\arcgisbinding_1.0.0.118.zip'
! 'C:\Program' is not recognized as an internal or external command,

! operable program or batch file.
! R command returned non-zero exit status.
Completed script InstallBindings...
Succeeded at Tue Apr 05 13:50:16 2016 (Elapsed Time: 2.85 seconds)

R Integration.pyt "ImportError: DLL load failed: %1 is not a valid Win32 application."

Using ArcGIS Desktop 10.5 (Advanced) on Windows 10 (64-bit), I am experiencing an issue which is quite similar to #14. The R side seems to be setup properly

> arcgisbinding::arc.check_product()
product: ArcGIS Desktop ( 10.5.0.6491 )
license: Advanced

and %USERPROFILE%\Documents\R\win-library\3.2\arcgisbinding has been successfully linked to ...\Desktop10.5\Rintegration (i.e., a folder .\arcgisbinding exists therein) using mklink. But still, R Integration.pyt does not reveal an installation script no matter if ArcGIS has been launched as Admin or not. Here's the output from 'Check Synthax...':

r-arcgis

R Installation Details - Showing Old Version of R

When I try to run the 'Install R bindings' tool, the 'Select R Version (Set As Default)' option is 3.3.1 and is greyed out and I cannot select a different version of R. I have uninstalled 3.3.1 and installed 3.4.2 and this still happens.

When I run the 'R Installation Details' page I get:
image

Any ideas?

P.S. I am trying to embrace ArcGIS Pro but sometimes I need to revert back to ArcMap to get something done quickly. I did successful install the bridge in Pro, with no problems.

Display selected version of R for installation and upgrade

The tool should display the current R being installed into from both the 'install' and 'upgrade' steps. If the default top-level registry key is missing, let the user select one of the installations, and set this version to be the correct top-level install in the registry.

Problem installing the toolbox (version Pro 1.4)

Hi! I have a problem installing R-ArcGIS Toolbox,

I've downloaded this repo, then I 've created a new Toolbox adding the folder "R Integration.pyt" and only I view a script call it "Tool" that it runs ok, but it doesn't show anything.

This is the screen capture:
image

I don't know where are the others files,

Thank you for all
Regards

Unable to Install Bindings

I'm getting the following message when I run the script:

**Executing: InstallBindings false
Start Time: Thu Jun 30 16:52:56 2016
Running script InstallBindings...

Traceback (most recent call last):
File "", line 164, in execute
File "C:\Users\SimonKassel\Documents\ArcGIS\r-bridge-install-master\rtools\install_package.py", line 191, in install_package
download_url = release_info()[0]
File "C:\Users\SimonKassel\Documents\ArcGIS\r-bridge-install-master\rtools\github_release.py", line 67, in release_info
json_r = parse_json_url(latest_url)
File "C:\Users\SimonKassel\Documents\ArcGIS\r-bridge-install-master\rtools\github_release.py", line 43, in parse_json_url
r = request.urlopen(url)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 404, in open
response = self._open(req, data)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 422, in _open
'_open', req)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 1181, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 995, in request
self._send_request(method, url, body, headers)
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 1029, in _send_request
self.endheaders(body)
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 991, in endheaders
self._send_output(message_body)
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 844, in _send_output
self.send(msg)
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 806, in send
self.connect()
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 1194, in connect
self.timeout, self.source_address)
File "C:\Python27\ArcGIS10.3\Lib\socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
LookupError: unknown encoding: idna

Failed to execute (InstallBindings).
Failed at Thu Jun 30 16:52:56 2016 (Elapsed Time: 0.02 seconds)**

R Bindings Installation in ArcGIS Pro fails

When I run the Install R bindings script in ArcGIS Pro, I receive the following message:

Unable to locate requested R command: C:\Program Files\R\R.3.3.2.2\bin\x64\Rscript.exe

The problem is that in my Program Files folder, I have two R folders: one for R-3.3.2 and one for 3.3.2.2.
In the former (3.3.2), Rscript.exe is effectively located in the x64 folder.
But in the second (3.3.2.2), it is located in the i386 folder. And it looks like the Install R binding tool is looking for Rscript.exe in a place where it doesn't exist.

Thanks for your help.

Manual install appears to work then running a tool it fails

Hi

hoping you can help

I carried out a manual install as #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)

Problem installing the toolbox

Hello!

I am trying to install the R-ARCGIS toolbox but this message appears everytime I click on the install button:

Link failed.
Completed script InstallBindings...
Failed to execute (InstallBindings).
Failed at Mon Jun 19 14:37:07 2017 (Elapsed Time: 2.33 seconds)

Thank you for your help.

Unable to install R Bindings

I am running ArcMap 10.3 and and R 3.3.1. I download the file, open ArcMap and R. I go into the toll box and run the tool 'Install R-Bindings.' It errors and i get the following message: Unable to locate R package library. Link failed. How can I locate the R Package library?

The complete line of code is as follows.
Executing: InstallBindings false
Start Time: Tue Aug 02 13:52:31 2016
Running script InstallBindings...
Saving URL to 'c:\temp\arc910b\tmpnbu94_\arcgisbinding_1.0.0.122.zip'
Rcmd.exe INSTALL c:\temp\arc910b\tmpnbu94_\arcgisbinding_1.0.0.122.zip
'C:\Users\Username\Documents\R\R-3.3.1\bin\i386'
CMD.EXE was started with the above path as the current directory.
R command returned non-zero exit status.
Unable to locate R package library. Link failed.
Completed script InstallBindings...
Failed to execute (InstallBindings).
Failed at Tue Aug 02 13:52:34 2016 (Elapsed Time: 3.63 seconds)

Could not bind to a valid ArcGIS installation

Hi,

I'm really excited to start using the R package.

I installed the arcgisbinding R package following the instructions using ArcCatalog, but when I run arc.check_product() it incorrectly yields "could not bind to a valid ArcGIS installation".

Also, the first time I tried loading the R package a dialogue appeared tell me that the MSVCP110.dll was missing. I installed it from here and then was able to successfully load the package.

Cheers,

Jeff

code

> library(arcgisbinding)
*** Please call arc.check_product() to  define a desktop license.
> arc.check_product()
Error in .call_proxy("arc_AoInitialize") : 
  Could not bind to a valid ArcGIS installation

ArcGIS info from ArcGIS Administrator

DESKTOP

Installation Information
Product Name: ArcGIS 10.3 for Desktop
Release Version: 10.3
Product Version: 10.3.0.4322
Installation Folder: C:\Program Files (x86)\ArcGIS\Desktop10.3\
Installed By: xxxx
Install Date: 6/05/2015
Install Time: 11:35:59
Install Image: C:\Users\xxxx\Documents\ArcGIS 10.3\Desktop\SetupFiles\
Current User: xxxx
Application Data Folder: C:\Users\xxx\AppData\Roaming
System Temporary Folder: C:\Users\xxxx\AppData\Local\Temp\

Service Pack Information
ArcGIS Service Pack: 0 (build 0)

License Manager Environment Variable Information
ARCGIS_LICENSE_FILE: N/A
LM_LICENSE_FILE: N/A

R session info

R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C   LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] arcgisbinding_1.0.0.111

loaded via a namespace (and not attached):
[1] tools_3.2.1

Installation not working

Following the instructions for offline-installation on ArcGIS 10.4 with Administrator privileges on a machine where R 3.2.0 is installed both as 32- and 64-bit-Version, I get a "successful" message,

Running script InstallBindings...
Found local copy of binding, installing from zip
Rcmd.exe INSTALL d:\temp\tmps0_kr6\arcgisbinding_1.0.0.119.zip
package 'arcgisbinding' successfully unpacked and MD5 sums checked
* installing to library 'D:/MyUserName/Home/R/win-library/3.2'
Completed script InstallBindings...

but when trying to run an R-Script, I am being told that I haven't installed the "ArcGIS R integration package"

*** Please install ArcGIS R integration package
Failed to execute (myScript).

When running "R Installation Details", I get the following message:

Running script RInstallDetails...
R (version 3.2.0), installed in: C:\Program Files\R\R-3.2.0
R packages will be installed into: C:\Program Files\R\R-3.2.0\library
All R package libraries detected: C:\Program Files\R\R-3.2.0\library
The ArcGIS R package is not installed. Use the 'Install R Bindings' tool to install them.
Completed script RInstallDetails...

Also, in the installation instructions, it says

If that doesn't work, the package directory, "arcgisbinding", that gets installed into the R folder (usually, C:\Users\Documents\R\win-library) into the requested place, C:\Program Files (x86)\ArcGIS\Desktop\Rintegration

which is a) unclear as a verb is missing (copy?) and b) I don't have a directory C:\Program Files (x86)\ArcGIS\Desktop. It is called "C:\Program Files (x86)\ArcGIS\Desktop10.4". Is that of importance?

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.