Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Run R through state - rsource

From   Daniel Feenberg <[email protected]>
To   [email protected]
Subject   Re: st: Run R through state - rsource
Date   Wed, 7 Sep 2011 08:45:04 -0400 (EDT)

On Tue, 6 Sep 2011, Daniel Marcelino wrote:

Hi all,

I'm trying to figure out how 'rsource' - a user written package could
works on Mac. Basically, this package send R commands through Stata
prompt. To do so, it needs to find and execute R on background.
The command works fine on Windows, under Mac environment, however, I'm
not able to get it working.
I've asked the Roger Newson who wrote this package, but unfortunately
he doesn't have a clue on this. I'm wondering if someone else has seen
it before.
The following line tells Stata to find the R application and run it,
however, I've had no answer in my screen.

global Rterm_path "/Applications/"
global Rterm_options `"--vanilla"'
rsource using mytest.R

I am not a Mac user, but since no one else has responded, I can suggest a few steps to take.

Open a terminal window and enter


Does R run? If not, you have found the problem, and just need to find the solution. Try:

 whereis R

and that should tell you the correct path. It is possible that setting the path to just "R" would work, and that setting the full path is just making trouble.

Dan Feenberg


About me:
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index