[R-SIG-Mac] Run R through Stata

Simon Urbanek simon.urbanek at r-project.org
Wed Sep 7 06:11:02 CEST 2011


On Sep 6, 2011, at 10:51 PM, Daniel Marcelino wrote:

> Hi all,
> 
> I'm trying to figure out how 'rsource' - a user written package for Stata
> could works on Mac. Basically, this package send R commands through Stata
> interface. To do so, it needs to find and execute R on background.
> The command works fine on Windows, however, under Mac environment I'm not
> able to get it working.
> I've asked the guy who wrote the Stata package, but unfortunately he
> doesn't have a clue on this.
> I wondering if anybody in the list have seen it before. The following line
> tells Stata to find the R application and run it, however, I got no answer
> in the screen.
> 
> 
> 
> global Rterm_path "/Applications/R64.app/Contents/MacOS/R"
> 
> global Rterm_options `"--vanilla"'
> 

That is most certainly wrong, because you're pointing it to the R.app GUI and not to R. Also note that if you installed R from CRAN then stata would have to go into considerable lengths to *not* find it, because it's in /usr/bin/R which is certainly on the PATH ...

Cheers,
Simon



> rsource using mytest.R
> 
> 
> 
> Daniel
> 
> 
> 
> -- 
> About me: http://danielmarcelino.zip.net/
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 



More information about the R-SIG-Mac mailing list