Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running R scripts from Stata via rsource on mac

    I'm on a mac and have installed/updated rsource by running:

    adoupdate install rsource, update

    but when I try to run my R script I get the following:

    . rsource using ~/.../rscript.R
    Assumed R program path: "/usr/bin/r"


    /bin/bash: /usr/bin/r: No such file or directory
    Beginning of R output
    End of R output


    What am I doing wrong?

  • #2
    It seems that Stata goes searching R files in the wrong directory. Where are stored your R files on your computer? I guess they are not in usr/bin/r, as assumed by Stata.

    You can specify the correct path in the rpath() option of rsource command. See help rsource for further details.

    Comment

    Working...
    X