Displaying 20 results from an estimated 20000 matches similar to: "Will R run in Batch mode?"
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
2001 Apr 13
3
batch mode?
Hi,
I was trying to use the batch mode "rcmd" under Windows NT. The online
help says the right command should be "Rcmd BATCH [options] infile [outfile]".
But when I type "rcmd BATCH aaa.r" I got message of "The name specified
is not recognized as an internal or external command, operable program
or batch file." What is wrong? I know this is a quite
2002 Aug 25
2
Rterm BATCH versus Splus BATCH
I have written a batch file I thought would run in R (for Windows, 1.5.1),
but as the documentation suggests, R is different in how it handles BATCH
from S-Plus (i.e. not directly equivalent to "Splus BATCH infile outfile
errfile").
If the file consists of a list of valid R commands, what's the best way of
automating it?
Many thanks.
STS
2003 Aug 20
2
Command line R / PHP?
Greetings All,
Just a quick query about calling R. Looking through the manual you start R
with $ R, and then start calling R functions e.g plot whatever. Sounds
pretty funky, and R looks to be *the* open source maths package. Awesome
... I would like to call R from my favourite glue language PHP (rather than
call perl which calls R) if possible. To call R from the command line is
all this
2005 Nov 18
3
How to run R in batch mode
Hello to everybody!
I want to run R in batch mode but it doen't work (Error: syntax error)
I've found this in R help:
R CMD BATCH [options] infile [outfile]
I have tried differents commands:
(I have been working in the same directory I have "test.txt" file and
"test2.txt" would be the output file)
> R CMD BATCH "test.txt"
or
> R CMD BATCH
2000 Aug 12
1
Batch Execution of R
R Team:
This is most likely a trivial question, but after searching docs for
several weeks and digging through Rweb and RCGI, I could not clearly
identify the method to call an R method from Linux or Win32 systems and
send the output to a file. I would like to implement R as part of an
online client-server application for a geographically spaced engineering
team an would like to know how to run
2008 Oct 17
2
R script from Python
Hi,
I'm trying to execute R-script from Python. I'm using R 2.7.2, Python 2.5
and WinXP.
I don't won't to use Python/R interface because of nature of project.
Python code :
import subprocess
command = 'c:\\Program Files\\R\\R-2.7.2\\bin\\Rterm.exe --vanilla -q
<d:\\test\\run\\geneBank.r> d:\\output.out'
subprocess.Popen(command).wait()
After that, I get error
2000 Jul 27
2
batch mode in linux
I'm trying to learn how to use R version 1.1.0 under Mandrake Linux
version 6.1. Using R interactively, I get good results. However, when
I attempt to execute commands from a file (following the directions in
section 1.10 of An Introduction to R, version 1.10) my output
disappears. As a default or after a sink() command, I would expect to
see output on the console, but none appears. After
2008 Dec 25
1
BATCH and testing
In a few of my test scripts for the survival code I expect warning messages
(I actually try to trigger a couple). Using R BATCH infile outfile these
messages don't end up in outfile, where I can compare them to what was
expected. I don't see an option to change this.
R < infile >& outfile works. But is there a way to get it to continue on
after errors?
Terry T.
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
2005 Feb 25
3
passing command line arguments to 'R CMD BATCH myScript.R'
Hi Community,
I have a question about how to pass command line parameters to R script
running in the batch mode. The problem is: there is a banch of data
files which are to be processed by R script called from a web-server,
i.e. in the batch mode. The web server generates data files and passes
their names calling 'R CMD BATCH' one by one for every file. Now the
question is how to
2003 Jul 02
2
Batch files in R
When I submit more than one batch file (same programs, different parameter
values, huge simulations, different result names) the only results that get
saved are from the *last* batch file to finish. They are all being run in
the same subdirectory (so same .RData file?)
I've done:
R --save BATCH infile outfile
and I've also put
q(save="yes")
at the end of the program, but
2001 Mar 07
3
export graph to Word/Excel
Hi,
I have a set of script like this:
----------------------
summary(data)
plot(time, users, type="o", xlab ="Time", ylab="Number
of Users")
----------------------
I type "rterm --slave < script.r > output.doc" and the
graphic doesn't
actually in the output.doc file. How to make the
graphic embedded in Word
or Excel file?
Thanks,
Yu-Ling Wu
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
1997 Jun 18
1
R-beta: BATCH
Does R have the ability run in batch mode as described in the S New 'blue
book'?
Richard
--
Richard Lammers Phone: (603) 862-4699
Complex System Research Center Fax: (603) 862-0188
University of New Hampshire email: Richard.Lammers at unh.edu
Durham, NH 03824 (USA) URL: TBA
2012 Aug 10
3
Batch Mode for Windows
Hi, I have researched batch mode for windows and could not find anything that
worked.
I know the code should be
$ R CMD BATCH inputfile.R outputfile.Rout
or
R <inputfile.R > outputfile.Rout
I tried these without success. I need detailed, step by step instructions on
how to do this. I have tried typing C:\R\bin\x64\Rgui.exe before it, but
this just opens R.
When I tried to do this, it
2003 May 05
1
commandArgs()
Apologies for asking about this, but I don't quite understand how
this works after looking through the FAQ and the Help archives.
Let's say I want to pass "1000" as an argument to R. I did the
following:
>R CMD BATCH --1000 infile outfile
When I do print( commandArgs() ), I see
[1] ".../R.bin" "--restore"
[3] "--save"
2003 Mar 12
1
Rcmd BATCH
Hello,
I''ve a question: I invoke R from a text editor in a Win2000 operating system using
Rcmd.exe BATCH inFile outFile
I''ve two problems:
a) If I use windows() as graphics device, all windows close immediately after script execution,
how can I let them not to die?
b) Is it possible to redirect the content of outFile to the console output?
Many thanks.
Paolo
2003 Jan 08
3
Errors running R in Batch mode under Win2000
I have made many different attempts to run a R program in Batch mode. I run a DOS command like:
C:\Progra~1\R\rw1061\bin\rterm.exe -q --no-restore --no-save myprogram.R out.txt
What happens:
1. DOS Shell starts up well
2. R starts
3. I get the messages:
"ARGUMENT 'myprogram.R' __ignored__"
"ARGUMENT 'out.txt' __ignored__"
4. R Shell is ready to
2006 Oct 13
2
cygwin script for Sweave
below is a very simple bash script to run Sweave from a cygwin terminal, run pdflatex on
the generated .tex file, and then view the resulting .pdf output.
i usually use cygwin when i am (forced to be on) Windoze, but i found a few issues
with paths that this script works around.
pdfview, used in the script, is simply: