Tutorial for Calling R in GAMA

89 views
Skip to first unread message

Viet Truong Xuan

unread,
Feb 7, 2013, 3:42:48 PM2/7/13
to gama...@googlegroups.com, gama-p...@googlegroups.com
Dear all,

I have updated the Stats.java for the new R_compute_param operator, which hepls to adding the parameters when calling R codes. Please look at the attached file for a short tutorial and update the new Stats.java if needed.

I'm sorry for the inconvenience but right now, I don't know yet how to update the guide for the R calling into the online tutorial by annotation.

Cheers,

Viet
CallingR_GAMA1.5.1.pdf
RCodes.zip

Benoit Gaudou

unread,
Feb 7, 2013, 6:30:43 PM2/7/13
to gama-p...@googlegroups.com

Hi Viet
Thank you very much for the doc.
The most convenient way to share it would be to add a new page on the wiki.
In the gama svn version, you could add a page in additional features.

Cheers

Benoit

--
--
Groupe de discussions sur GAMA / Discussion group on GAMA
to send a message: gama-p...@googlegroups.com
to quit: gama-platfor...@googlegroups.com
group address: http://groups.google.fr/group/gama-platform?hl=fr
---
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Viet Truong Xuan

unread,
Feb 8, 2013, 3:06:15 AM2/8/13
to gama-p...@googlegroups.com
Dear Dr. Benoit,

I will firstly try to add the guide into the wiki, before applying the annotation! I hope that the tutorial is easy to use!

Cheers,

Viet

Srirama Bhamidipati

unread,
Jun 4, 2014, 10:44:02 AM6/4/14
to gama-p...@googlegroups.com
Hi,

Following the tutorial. I get this error  rcaller.exception.RCallerExecutionException: Can not run C:\Program Files\R\R-3.0.2\bin\x64\Rscript.exe. Reason: java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified  

(please see attachment). Please advise how to resolve this.

regards,
Srirama
R_GAMA_error.txt

Srirama Bhamidipati

unread,
Jun 4, 2014, 10:46:05 AM6/4/14
to gama-p...@googlegroups.com
Do I need to install Rcaller ? It is not very clear from the tutorial.

regards,
Srirama

Benoit Gaudou

unread,
Jun 4, 2014, 10:56:01 AM6/4/14
to gama-p...@googlegroups.com
Hi,

I guess you followed the tutorial in the page CallingR16: 

Configuration in GAMA

1) Install R language into your computer.

2) In GAMA, select menu option: Edit\Preferences.

3) In "Config RScript's path", browse to your "RScript" file (R language installed in your system).

Notes: Ensure that install.packages("Runiversal") is already applied in R environment.



First, you do not need to install RCaller.
You only need to install R software from the given link (r-project.org).
Second you need to configure GAMA to find the RScript file (2) and 3) )

Third, if you did not do it before, you need to run R, and to write in the R console :  install.packages("Runiversal") 
which will install the Runiversal package.


(I just tried the R operators, and they seem to work on my laptop)

Hope it helps.

Benoit




--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

HUYNH Nghi

unread,
Jun 4, 2014, 10:56:34 AM6/4/14
to gama-p...@googlegroups.com
Hi,
Yes, sure, we need install R and package Runiversal (this will propose link with RCaller of GAMA). This link would help http://code.google.com/p/gama-platform/wiki/CallingR16
Cheers.

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Srirama Bhamidipati

unread,
Jun 4, 2014, 11:01:32 AM6/4/14
to gama-p...@googlegroups.com
Yes, All the instructions have been followed. All packages installed. After that I get the error I mention. 

regards.
Srirama

Srirama Bhamidipati

unread,
Jun 4, 2014, 11:04:17 AM6/4/14
to gama-p...@googlegroups.com
You can all instructions followed in one screenshot.
RCapture.JPG

HUYNH Nghi

unread,
Jun 4, 2014, 11:07:49 AM6/4/14
to gama-p...@googlegroups.com
Euh, it look like an issue of processing the string path. If you use an release version of GAMA, please try to reinstall R to a folder without " " (space) and do again these steps.
On Wed, Jun 4, 2014 at 10:04 PM, Srirama Bhamidipati <b.sr...@gmail.com> wrote:
You can all instructions followed in one screenshot.

--

Srirama Bhamidipati

unread,
Jun 4, 2014, 11:12:22 AM6/4/14
to
I am using SVN version. So do I need to install R again (without space in folder path) ?

HUYNH Nghi

unread,
Jun 4, 2014, 11:14:14 AM6/4/14
to gama-p...@googlegroups.com
here is space : "C:\Program<space>files" , when install R, please try with something C:\R\. I will take a look on svn and commit the fix soon.
On Wed, Jun 4, 2014 at 10:12 PM, Srirama Bhamidipati <b.sr...@gmail.com> wrote:
I am using SVN version. So do I need to install R again (which space in folder path) ?
Reply all
Reply to author
Forward
0 new messages