Re: [R] Rexcel path problem

From: Felipe Carrillo <mazatlanmexico_at_yahoo.com>
Date: Fri, 01 Apr 2011 07:28:47 -0700

Jorge:
You can run save your scripts in the same folder where your wokbook is and run it like this:

Sub Scatter()                    

Call rinterface.StartRServer
'Put the dataframe into R
    Call rinterface.PutDataframe("scatter", DownRightFrom(Range("RData!A1")), WithRowNames:=False)
Call rinterface.RRun("attach(scatter)")
'Run the RScatter script
rinterface.RunRFile ThisWorkbook.Path & "\RScatter.r" Call rinterface.StopRServer
End Sub

I

 
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.aspx


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 01 Apr 2011 - 14:36:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 01 Apr 2011 - 14:50:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive