Hi all, I am trying to run a macro by R in a EMME script. The R macro that we wrote is called IPFPUMS.R. The whole process has been working until someone removed R. We tried to re-install R but getting the error message: ??R? is not recognized as an internal or external command, operable program or batch file.? Here is how R is called to run the macro in the script: *R --save < IPFPUMS.R* R now resides on the same server location as EMME. Our IT person created a symbolic link for R but still the same error occurred. Any thoughts will be much appreciated. Grace [[alternative HTML version deleted]]
Since you didn't say, I'm going to assume this is Linux. One option would be to put the full path to R in the call in the EMME script. This might be, for example /usr/local/bin/R --save < IPFPUMS.R Without the asterisks before and after, unless they are a requirement of EMME (which I've never heard of). But it will depend on where R is installed. It might be easier in the long run to use Rscript instead of R. (strictly speaking, this is not an R problem, but a operating system/installation problem, possibly combined with the methods EMME uses to interact with software other than itself) -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 12/8/16, 10:56 AM, "R-help on behalf of Grace King" <r-help-bounces at r-project.org on behalf of gking at ctps.org> wrote:>Hi all, > > > >I am trying to run a macro by R in a EMME script. The R macro that we >wrote >is called IPFPUMS.R. The whole process has been working until someone >removed R. We tried to re-install R but getting the error message: > >??R? is not recognized as an internal or external command, operable >program >or batch file.? > > > >Here is how R is called to run the macro in the script: > > > >*R --save < IPFPUMS.R* > > > >R now resides on the same server location as EMME. Our IT person created a >symbolic link for R but still the same error occurred. > > > >Any thoughts will be much appreciated. > > > >Grace > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >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.
This looks like it has nothing to do with R per se and therefore is likely OT here. Please consult your local IT resources for help. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Dec 8, 2016 at 10:56 AM, Grace King <gking at ctps.org> wrote:> Hi all, > > > > I am trying to run a macro by R in a EMME script. The R macro that we wrote > is called IPFPUMS.R. The whole process has been working until someone > removed R. We tried to re-install R but getting the error message: > > ??R? is not recognized as an internal or external command, operable program > or batch file.? > > > > Here is how R is called to run the macro in the script: > > > > *R --save < IPFPUMS.R* > > > > R now resides on the same server location as EMME. Our IT person created a > symbolic link for R but still the same error occurred. > > > > Any thoughts will be much appreciated. > > > > Grace > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
Hi Grace, It is almost certainly a directory problem. The new R installation may be in a different directory from the old one. Does R run from the Start menu or a desktop icon? If so, look at "Properties" to discover where it is located and use the explicit path (e.g. C:\Users\Grace\R -save < IPFPUMS.R) If that works you can probably add the R home directory to your PATH when calling the script. Jim On Fri, Dec 9, 2016 at 5:56 AM, Grace King <gking at ctps.org> wrote:> Hi all, > > > > I am trying to run a macro by R in a EMME script. The R macro that we wrote > is called IPFPUMS.R. The whole process has been working until someone > removed R. We tried to re-install R but getting the error message: > > ??R? is not recognized as an internal or external command, operable program > or batch file.? > > > > Here is how R is called to run the macro in the script: > > > > *R --save < IPFPUMS.R* > > > > R now resides on the same server location as EMME. Our IT person created a > symbolic link for R but still the same error occurred. > > > > Any thoughts will be much appreciated. > > > > Grace > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.