R-ArcGIS / r-bridge-install

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

R Integration.pyt displays as broken (x) #38

Closed HajimeSeya closed 7 years ago

HajimeSeya commented 7 years ago

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

AnArcheo commented 7 years ago

Dear Hajime, I had the same problem, but I finally fixed it. (It worked for me perfectly) First, You have to download latest 'arcgisbinding' package from here: . Next, install this package using R (or RStudio) from local (*zip) repository (provide path where it was downloaded). After installation You should check in R if installation was successful, typing:

library(arcgisbinding) *** Please call arc.check_product() to define a desktop license. arc.check_product()

If there is no error messages, there is few steps to do:

  1. In most cases R packages are installed in C:\Users\Documents\R\win-library) so You have to copy from there 'arcgisbinding' folder and paste it into two places:

    • C:\Program Files\R\R-3.3.1 (This will require administrator privileges)
    • C:\Program Files (x86)\ArcGIS\Desktop10.x\Rintegration (before that, You have to create 'Rintegration' folder in that location)
  2. Next, set 'Path Environment Variable' to R and it's modules and library (like is shown here:) C:\Program Files\R\R-3.3.1\ C:\Program Files\R\R-3.3.1\bin C:\Program Files\R\R-3.3.1\library C:\Program Files\R\R-3.3.1\modules Remember to add a semi-colon (;) between each path!

  3. Last one, download sample-toolbox and try it :) Good Luck! Anna

HajimeSeya commented 7 years ago

It perfectly works for me!! Thank you very much for your very detailed information, Anna.

Hajime

AnArcheo commented 7 years ago

I'm glad to hear! Best work and analysis! Anna