Announcement

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

  • rsource package

    Anyone successfully using rsource on Win7 with Stata 14?

    I tried rsource from Roger Newson in a new environment (windows 7 64bit, Stata v.14 network license). I've used rsource before on a personal mac Stata license without issues. When I tried to use rsource, a window with all blue background pops up and disappears as quickly (it might be titled with System32, but it goes away so fast I can't tell). I get no R output other than:

    . rsource using twoplustwo.R
    Assumed R program path: "C:\Program Files\R-3.2.2\bin\i386\Rterm.exe"
    Beginning of R output
    End of R output

    I set my path etc. as the help file indicated

    global Rterm_path `"C:\Program Files\R-3.2.2\bin\x64\Rterm.exe"'
    global Rterm_options `"--vanilla"'


  • #2
    I'm in conversation with Roger Newson off list. He's proven to me that something is not right with my system. --Dave

    Comment


    • #3
      How embarrassing. I had a path set incorrectly as Roger just pointed out!! Now it works. Thanks Roger, your Stata packages are very helpful.

      Comment


      • #4
        Hi Dave,

        Can you please share the correction you did?

        Code:
        glo Rterm_path `"C:\Program Files\R\R-4.1.2\bin\x64\Rterm.exe"'
        glo Rterm_options `"--vanilla"'
        When I run the following code
        Code:
         rsource using filename.R
        , I output is displayed in stata up until loading tidyverse library, and it stops.

        [HTML]
        > #### 1. Environment Preparation ####
        > # Clear environment
        > rm(list=ls())
        > # Load libraries
        > library(tidyverse)
        End of R output
        /HTML]


        When I run the following code
        Code:
         rsource using filename.R,  roptions(--slave)
        I get the same message in your first thread.

        HTML Code:
        Assumed R program path: "C:\Program Files\R\R-4.1.2\bin\i386\Rterm.exe"
        Beginning of R output
        End of R output
        Thank you,

        Comment

        Working...
        X