May ı ask what is the problem?
Executing: ModelBasedClustering dep C:\Users\Pc\Documents\ArcGIS\Default.gdb\dep_ModelBasedClustering # # #
Start Time: Tue Feb 20 14:20:17 2018
Running script ModelBasedClustering...
Installing package into 'C:/Users/Pc/Documents/R/win-library/3.4'
(as 'lib' is unspecified)
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found'cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'
trying URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.4/sp_1.2-7.zip'
Content type 'application/zip' length 1538531 bytes (1.5 MB)
downloaded 1.5 MB
package 'sp' successfully unpacked and MD5 sums checked
cannot remove prior installation of package 'sp'
The downloaded binary packages are in
C:\Users\Pc\AppData\Local\Temp\Rtmp8GWZXj\downloaded_packages
Installing package into 'C:/Users/Pc/Documents/R/win-library/3.4'
(as 'lib' is unspecified)
trying URL 'http://cran.cnr.Berkeley.edu/bin/windows/contrib/3.4/mclust_5.4.zip'
Content type 'application/zip' length 4128652 bytes (3.9 MB)
downloaded 3.9 MB
package 'mclust' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Pc\AppData\Local\Temp\Rtmp8GWZXj\downloaded_packages
Error in do.call : could not find function "mclustBIC"
Failed to execute (ModelBasedClustering).
Failed at Tue Feb 20 14:21:04 2018 (Elapsed Time: 47.33 seconds)
Hi Saffet,
It appears that you are working with the latest version of R, 3.4.3. If this is the case, there are two ways you could solve this issue.
1) On R 3.4.3 you need to add C:/Program Files/R/R-3.4.3/bin/i386
to the PATH
environment and then restart ArcMap. (Or if you are using 64 bit ArcGISPro add ..../bin/x64
).
You can find your Path environment variable by right-clicking on This PC in File Explorer and then selected Advanced system settings, followed by Environment Variables.
2) Alternatively, the second solution is to install Beta version of the 'arcgisbinding' package https://github.com/R-ArcGIS/r-bridge/releases/tag/v1.0.1.229-beta
Hope this helps.
-Marjean
Marjean Pobuda, I'd like to follow up with a related issue I've been encountering while doing the 2nd exercise of Esri's 'Using the R-ArcGIS Bridge' tutorial. I am unable to successfully complete the final part of step 5, where I have to execute the line: 'arc.write("C:\\EsriTraining\\R-ArcGISBridge\\data.gdb\\billboard_clusters2", sp.df, shape_info = shape_info)'. This step is suppose to output the final results of the cluster analysis as a polygon feature class. However, I always get the following error in RStudio: 'Error in .call_proxy("arc_export2dataset", path, pairlist(data = data, :
the input is not a workstation prj file'
Your help is much appreciated.
Jacob,
Just before that step, what does the contents of your `shape_info` object look like? It should be defined on the line:
shape_info <- list(type="Polygon", WKT=arc.shapeinfo(data_shp)$WKT)
One option would be to try this instead:
shape_info <- list(type="Polygon", WKID=arc.shapeinfo(data_shp)$WKID)
I don't see anything in the lesson that is obviously wrong with that command, let us know if the above helps.
Cheers,
Shaun
I am getting a similar (or the same) problem with that training. At Step 10 where we are meant to output the results to open in ArcGIS Pro I get: > arc.write("C:\\EsriTraining\\R-ArcGISBridge\\data.gdb\\billboard_clusters6", sp.df, shape_info = shape_info)
Error in .call_proxy("arc_write", path, pairlist(data = data, coords = coords, :
the input is not a workstation prj file.
It does create the file. But it is empty.
Thanks
Quin