Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | "Jason Roberts" <> |
---|---|
To: | "'Bree Witteveen'" <> |
Cc: | <> |
Subject: | RE: [mget-help] Accessing R |
Date: | Tue, 25 Feb 2014 16:56:10 -0500 |
Bree,
Thanks for your interest in MGET; sorry for the slow response.
The short answer is that you need to install R for Windows; MGET will not be
able to access the R that is installed on your MacOS.
The long answer is this. As you know, ArcGIS is running under the Windows OS
that you are accessing through Parallels. To Access MGET tools, ArcGIS first
instantiates a copy of the Python interpreter within the ArcGIS process
(running under Windows), then instructs it to execute MGET's Python scripts.
These scripts therefore run within the ArcGIS process. To access R, these
scripts fist load a customized version of the rpy Python package, which then
loads a copy of the R interpreter--again into the ArcGIS Windows
process--and then submit R code to that interpreter. Thus it is this single
ArcGIS process under Windows that is running ArcGIS, Python, and R all
within itself, and none of these things know that they happen to be running
on a Windows virtual machine hosted by MacOS (if that is, in fact, how
Parallels works, which I have never checked...)
Jason
-----Original Message-----
From: Bree Witteveen
[mailto:]
Sent: Monday, February 24, 2014 12:45 PM
To:
Subject: [mget-help] Accessing R
Hello group,
I am running MGET and ArcGIS 10.2 through Parallels on a Macbook.
However, R runs through the Mac OS. Does anyone know how to get MGET to
communicate with R in this way?
Thanks in advance.
--
Briana H. Witteveen
Research Assistant Professor
University of Alaska Fairbanks
School of Fisheries and Ocean Sciences
Marine Advisory Program
Kodiak Seafood and Marine Science Center
118 Trident Way
Kodiak, AK 90615
907-486-1519
http://seagrant.uaf.edu/map/gap/index.php
Thanks for your interest in MGET; sorry for the slow response.
The short answer is that you need to install R for Windows; MGET will not be
able to access the R that is installed on your MacOS.
The long answer is this. As you know, ArcGIS is running under the Windows OS
that you are accessing through Parallels. To Access MGET tools, ArcGIS first
instantiates a copy of the Python interpreter within the ArcGIS process
(running under Windows), then instructs it to execute MGET's Python scripts.
These scripts therefore run within the ArcGIS process. To access R, these
scripts fist load a customized version of the rpy Python package, which then
loads a copy of the R interpreter--again into the ArcGIS Windows
process--and then submit R code to that interpreter. Thus it is this single
ArcGIS process under Windows that is running ArcGIS, Python, and R all
within itself, and none of these things know that they happen to be running
on a Windows virtual machine hosted by MacOS (if that is, in fact, how
Parallels works, which I have never checked...)
Jason
-----Original Message-----
From: Bree Witteveen
[mailto:]
Sent: Monday, February 24, 2014 12:45 PM
To:
Subject: [mget-help] Accessing R
Hello group,
I am running MGET and ArcGIS 10.2 through Parallels on a Macbook.
However, R runs through the Mac OS. Does anyone know how to get MGET to
communicate with R in this way?
Thanks in advance.
--
Briana H. Witteveen
Research Assistant Professor
University of Alaska Fairbanks
School of Fisheries and Ocean Sciences
Marine Advisory Program
Kodiak Seafood and Marine Science Center
118 Trident Way
Kodiak, AK 90615
907-486-1519
http://seagrant.uaf.edu/map/gap/index.php
Archives powered by MHonArc.