Displaying 20 results from an estimated 20000 matches similar to: "calling r, from SAS, batch mode"
2003 May 20
1
Calling R in BATCH mode from C programm
Hello R-people,
I have the following problem :
In order to run R script from DOS prompt in BATCH mode and pass it some
parameters I do the following :
Rterm --slave --no-save --no-restore <args.R> args.out ARG1=1 ARG2=2
It works fine :
the result is that the script args.R is isexecuted. Sys.getenv() sees the
arguments ARG1 and ARG2, and the R creates output file args.out
Now I want
2003 May 20
1
R in BATCH mode
Dear all,
In R<=1.6.2 I usually used the following code (in DOS prompt) to run R in
batch mode
C:\documents> Rcmd BATCH myfile.R
and I could see the results (including warning messages) in the file
myfile.Rout
In R.1.7.0 I'm experiencing the followings:
(1) even if I type "Rcmd BATCH myfile.R myfile.Rout",
no file myfile.Rout is created, but just a "&1" file
2011 May 24
1
R in batch mode
Hi Everyone,
I am a new R user and trying to run R jobs in batch mode.
Robert Muenchen (2009), in his book "R for SAS and SPSS Users", has suggested writing a small batch file like mR.bat as shown below:
"C:\Program File\R\R-2.10.0\bin\Rterm.exe" --no-restore --no-save < %1 > %1.Rout 2>& 1
Could anyone tell me in which directory or subdirectory I should
2000 Jun 21
3
SAS dataset
Hello,
Is there any way we convert SAS dataset into R dataset?
Kindest Regards,
Peppy Adi-Purnomo
------
Peppy Adi-Purnomo
Energy Market Analyst
Energy Link Ltd
Dunedin - New Zealand
Ph.: +64 3 479 2475
Fax: +64 3 477 8424
Email: s.adi.purnomo at energylink.co.nz
www.EnergyLink.co.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2010 Feb 28
2
Calling SAS from R
I'm new to post in R-help and my native language is not English.
I apologize if my sentence is not fluent to read.
I am doing a simulation study and I need to execute SAS and read a SAS code
in R.
I try the following code but it doesn't work.
system('"c:\\program files\\SAS\\SAS 9.1\\sas.exe" "c:\\syntax.sas"')
can anyone give me some help with this?
2010 Sep 15
4
Sas to R
Hi,
I need to call an R program from Sas. I have tried using the following code
in Sas using the x command but it just calls up dos and says
'D:\Program' is not recognized as an internal or external command, operable
program or batch file.
]
SAS CODE:
options xwait xsync;
%let Rsource=S:\EPI_Data\Communicable Diseases\DR1355 Historic Communicable
Disease Analaysis\R graphics;
options
2009 Jan 24
1
Calling R from SAS
Can I call R from SAS? I tried the below command in SAS, but not
working...
OPTIONS XWAIT XSYNC;
X "C:\Program Files\R\R-2.7.1\bin\R.exe --no-save -quiet
<""C:\TEMPO\program.r""> ""C:\TEMPO\program.log""";
Had done this before and it was working perfect... But now, not...
Sorry if this query was supposed to be put in SAS mailing
2013 Feb 07
2
calling outside program to run from R - similar to X command in SAS
I'm new to R and have not been able to find what I am looking for online. I found the system command but that seems to be used for getting lists of directories, etc.
I am trying to replicate something that I used to do in SAS. I am simulating some data (which I can do in R with a particular package) and then trying to call an outside program to fit a specific model to the data. In SAS, the
2007 Dec 04
6
Is R portable?
Recently I came across an interesting web site:
http://portableapps.com/. The idea is simple, this is software that
is possible to install and run on some type of USB memory, a stick or
one of these hard disks. I can think of a number of situations where
this could be handy. In addition memory sticks are getting cheaper
and more powerful by the day.
So: Is it possible to run R off one of
2007 Dec 27
1
SAS to R - if you don't have a SAS license
Hi all,
if you do not have a SAS license but want to convert
native SAS data files, the solution below will work.
# read SAS data without SAS
# 1. Download free SAS System Viewer from either of
the sites below:
#
http://www.sas.com/apps/demosdownloads/setupcat.jsp?cat=SAS+System+Viewer
(requires registration)
#
http://www.umass.edu/statdata/software/downloads/SASViewer/index.html
#
2002 Oct 16
1
Batch mode on windows
Posted on behalf of chenwj <stop4optimal at hotmail.com> who is having
trouble posting.
hi all,
I'm completely new in R, and here are my questions (under windows):
1. i want to run my four R files (pl1.r -- pl4.r) in batch mode. i'd
like to write a batch file using Rterm.exe, since i dont get perl
installed on my computer. My experimental batch file (*.bat) didnt work,
which
2007 Dec 27
0
SAS to R - if you have SAS 8.2+
Hi there,
the attached R function uses the SAS Integrated Object
Model (IOM) and it can deal with SAS dates and long
variable names. All you need to provide is the folder
where the SAS data file is and the data file name
without the extension. The function requires the rcom
package.
This is meant to be first cut...but improvements and
suggestions are more than welcome!
Gyula
import.sas.data
2010 Nov 24
2
Running R from SAS
Hello All,
I am interested in running an R program with several random seeds. One approach is to launch the program from SAS. The recommended approach is to use the X command as shown below:
OPTIONS XWAIT XSYNC;
X "r.exe --no-save --quiet <""c:\temp\r\program.r"" >""c:\temp\r\program.log""";
However, this does not seem to work for me.
2008 May 15
1
Reading SAS data into R
Hi R,
Suppose that SAS dataset 'tsubset1' is stored in the path, "Z:/data".
Then I give the below read.ssd() command to read SAS dataset,
'tsubset1.sas7bat' into R.
> library(foreign)
> s=read.ssd("Z:/data","tsubset1",sascmd = "C:/Program Files/SAS/SAS
9.1/sas.exe")
> s
A B C
1 3 4 5
2 6 7 8
3 3 4 5
It reads
2009 Jun 06
0
SAS CMO and SVP Jim Davis on Open Source, BI , competition, leadership succession & others
An interview with Chief Marketing Officer of SAS Institute, Jim Davis.
Here is an extract-
http://www.decisionstats.com/2009/06/05/interview-jim-davis-sas-institute/
*Ajay -It is rare to find a major software company that has zero involvement
with open source movement (or as I call it with peer-reviewed code). Could
you name some of SAS Institute’s contribution to open source? What could be
2010 Mar 25
1
Read SAS data
Hi!
I need to import in R some SAS dataset (sas7bdat). I found two functions to
do it:
"read.ssd" from the package "foreign" and "sas.get" from "Hmisc".
df = read.ssd(libname = path2data, sectionnames = "sasSmallDataset",
tmpXport = path2data, tmpProgLoc = path2data, sascmd = path2sas)
sas.get(libraryName = path2data, member =
2003 Sep 28
0
Problem with sas.get function in Hmisc library
I tried to use for the first time the Frank Harell's sas.get function (in
Hmisc library)
and cannot manage to import my sas datas.
When I use the sas.get(library,member, ...) method, I get the following
error :
> sas.get("pme","Edfv1_a")->test.import.sas
Error in sas.get("pme", "Edfv1_a") : library, "pme", is not a Unix
directory
In
2005 Aug 24
0
summary: Call SAS from R
Thanks for all the insightful responses that help me solve my problem.
The original question is: how to call SAS from R
The solution is as below:
If my sas code, test.sas, is in directory c:\ncme06\sas codes, then the
following codes works
> system('"c:\\program files\\sas institute\\sas\\v8\\sas.exe"
"c:\\ncme06\\sas codes\\test"')
Things to notice:
1. need a
2007 Feb 10
1
SAS, SPSS Product Comparison Table
Hi All,
My paper "R for SAS and SPSS Users" received a bit more of a reaction
than I expected. I posted the link
(http://oit.utk.edu/scc/RforSAS&SPSSusers.pdf) about 12 days ago on
R-help and the equivalent SAS and SPSS lists. Since then people have
downloaded it 5,503 times and I've gotten lots of questions along the
lines of, "Surely R can't do for free what [fill in
2012 Mar 28
2
SAS Import with sas.get {Hmisc} - status 127 error
I'm trying to import a .sas7bdat dataset into R with sas.get. I'm using
Win-7 and SAS 9.2. I have read the following post and did tweak the line
(127, incidentally) of code.
<http://r.789695.n4.nabble.com/R-Problem-with-sas-get-function-in-Hmisc-td81
4367.html>
http://r.789695.n4.nabble.com/R-Problem-with-sas-get-function-in-Hmisc-td814
367.html
However, I get the following