Git Product home page Git Product logo

r-bridge-install's Introduction

Install the R ArcGIS Tools

Install and update the R ArcGIS Bridge with this Python toolbox.

NOTE: This release is a beta, and under active development. 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.1 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.118.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

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

scw avatar

Watchers

 avatar

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.