Hello,
I run some programs R from BATCH using this syntax
R CMD BATCH options(echo = FALSE) C:\R\copie.r C:\PHP\sortie.r
but the options doesn't work do you know why?
thanks.
_
[[alternative HTML
?BATCH
By default, the input commands are printed along with the output.
To suppress this behavior, add 'options(echo = FALSE)' at the
beginning of 'infile'.
at the begining of 'infile' means that 'options(echo = FALSE)' must be
included inside 'infile'( in your case copie.r), as
If I start from within R a new R batch job by using something like
system(R CMD BATCH --no-save --quiet Rin.txt Rout.txt,
intern=FALSE, ignore.stderr=TRUE, wait=FALSE, input=NULL)
the job runs fine and smooth.
However, when, for any reason, I put twice ctrl+C in the calling R
Hi,
I am a complete newbe to R, so the following problem will probably be
trivial for most of you guys: I get an error message every time I try
to run a R file directly from the DOS shell.
My R file (test.R) is intended to create a basic graph and has a very
simple code:
x-rep(1:10,1)
R isn't in your path. Either change your path to include it or place
Rcmd.bat from batchfiles anywhere in your existing path:
http://code.google.com/p/batchfiles/
and then:
Rcmd BATCH ...whatever...
On 6/8/07, Sébastien Bihorel [EMAIL PROTECTED] wrote:
Hi,
I am a complete newbe to
, 2007 1:51 PM
To: Sébastien Bihorel
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Batch processing in Windows
R isn't in your path. Either change your path to include it or place Rcmd.bat
from batchfiles anywhere in your existing path:
http://code.google.com/p/batchfiles/
and then:
Rcmd
hello,
I tried to run programs in BATCH like you told me but to read the results it's
a lil hard
first to read the results it's important to write down an outfile
but when I do this I've got stil the same answer
R version 2.4.1 (2006-12-18)
Copyright (C) 2006 The R Foundation for Statistical
it states that it does not find the object
donParEssai
which is not there. It is nor there since you have given the object the
name
donParCara
from what I see...
elyakhlifi mustapha wrote:
hello,
I tried to run programs in BATCH like you told me but to read the results
it's a lil hard
I saw the R-help to run some R programs in batch I used it like this
R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r
Erreur : erreur de syntaxe dans R CMD
but without success!!!I don't work on linux but on windows IS it the same
command ?
1. why do you need R BATCH on Windows? This is mostly useful when
running on a remote (usually Linux) server...
2. why didn't you tell us about Windows in your first post ?
3. why do you not quote the path to your script? This way R can only
read c:/Documents
Petr
elyakhlifi mustapha napsal
elyakhlifi mustapha wrote:
I saw the R-help to run some R programs in batch I used it like this
R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r
Erreur : erreur de syntaxe dans R CMD
but without success!!!I don't work on linux but on windows IS it the same
command ?
On 5/14/07, Vladimir Eremeev [EMAIL PROTECTED] wrote:
elyakhlifi mustapha wrote:
I saw the R-help to run some R programs in batch I used it like this
R CMD BATCH C:/Documents and Settings/melyakhlifi/Bureau/calcara.r
Erreur : erreur de syntaxe dans R CMD
but without success!!!I
Hi,
Someone help-me on this task some weeks ago, and it is working find to me. I
use something like:
-
findmodels - function(modeltype = lm, dataset, pattern) {
ls - ls(.GlobalEnv, pattern=pattern)
mods - ls[sapply(ls, function(x) inherits(get(x), modeltype))]
if
Hello
I want to batch job the calculation of many GLM-models, extract some values and
store them in a file. Almost everything in the script below works (read file,
extract values and write them to file) except I fail in indexing the GLM with
the modelstructure it should run. Running GLM's
as.formula(modelstructure[i]) in the glm function
Indermaur Lukas [EMAIL PROTECTED] 01/11/07 7:34 PM
Hello
I want to batch job the calculation of many GLM-models, extract some values and
store them in a file. Almost everything in the script below works (read file,
extract values and write
From ?glm:
formula: a symbolic description of the model to be fit. The details of
model specification are given below.
which could be clearer. It needs to be a object of type 'formula'.
I believe as.formula(modelstructure[i]) will do what you want (but your
posting has come out
thank you. exactly what I needed.
can I add it as a suggestion for the next R version to add
an option to quit that prints only one line to stderr (or stdout, but
the real one, not the batch output one) that gives a 1-line job
summary---no error (or nothing), 5 warnings, 5 warnings, fatal
error:
the following diff to the shell script invoking R prints an error
message if R terminates with an error code:
112c112,119
exec sh ${R_HOME}/bin/Rcmd [EMAIL PROTECTED] ;;
---
sh ${R_HOME}/bin/Rcmd [EMAIL PROTECTED]
rc=$?
if [ $rc -ne 0 ]; then
shift ;
ivo welch wrote:
the following diff to the shell script invoking R prints an error
message if R terminates with an error code:
112c112,119
exec sh ${R_HOME}/bin/Rcmd [EMAIL PROTECTED] ;;
---
sh ${R_HOME}/bin/Rcmd [EMAIL PROTECTED]
rc=$?
if [ $rc -ne 0 ]; then
This sort of thing is contrary to the Unix spirit. It gives the user no
choice but to be told that there is a non-zero error code, whereas it is
really easy for the user to wrap the command in his/her own script that
reports the error code in whatever form is desired.
The Unix idea is to
dear R wizards: is it possible to instruct R to save or no-save from
inside R? or does this have to be given at invokation on the
command-line?The same question applies to --no-restore-data,
although this presumably would have to be decided in a .First()
function or something like it.
on a
ivo welch wrote:
dear R wizards: is it possible to instruct R to save or no-save from
inside R?
You can specify the action when you call q() or quit(), but you can't
change the default action.
or does this have to be given at invokation on the
command-line?The same question applies to
Dear R users,
I have created a series of postscript files and I´d like to print them
with the file name added to the printout. Is there a way of reading
these files into R (e.g. using rimage after conversion to jpeg), adding
the file name, and then sending the files to a windows printer?
I
Hi,
ok, I know I should be using a later version than 1.7.1 (64 bit) but
it's not in my power.
So here is the problem:
In my R script I declare a data.frame that consists of 40 vectors, each
having 125 numeric elements. This is no problem as long as I run the
sript in interactive mode, but
Jörg Schaber wrote:
Hi,
ok, I know I should be using a later version than 1.7.1 (64 bit) but
it's not in my power.
So here is the problem:
In my R script I declare a data.frame that consists of 40 vectors, each
having 125 numeric elements. This is no problem as long as I run the
a R batch file in RGui. Suppose I
have a script file (like do file in stata, or sas file in SAS) under
c:\whatever.R, how can I execute it using commands (not drop down menu) in
RGui? In stata, would be something like
If I am not mistaken the command is:
source(whatever.R)
... or source(c
, delimiters, basic modeling commands) in R as in Stata
or SAS. I am just wondering how to execute a R batch file in RGui. Suppose I
have a script file (like do file in stata, or sas file in SAS) under
c:\whatever.R, how can I execute it using commands (not drop down menu) in
RGui? In stata, would
and really like to get a handle of basics in short period
of
time. What I am trying to do is get myself a list of must-do's (read in
data, batch execution, delimiters, basic modeling commands) in R as in
Stata
or SAS. I am just wondering how to execute a R batch file in RGui.
Suppose I
have a script
. I am just wondering how to execute a R batch file in RGui.
Suppose I
have a script file (like do file in stata, or sas file in SAS) under
c:\whatever.R, how can I execute it using commands (not drop down menu)
in
RGui? In stata, would be something like
If I am not mistaken the command
I am new to R and really like to get a handle of basics in short period of
time. What I am trying to do is get myself a list of must-do's (read in
data, batch execution, delimiters, basic modeling commands) in R as in Stata
or SAS. I am just wondering how to execute a R batch file in RGui. Suppose
jun xu wrote:
I am new to R and really like to get a handle of basics in short period of
time. What I am trying to do is get myself a list of must-do's (read in
data, batch execution, delimiters, basic modeling commands) in R as in Stata
or SAS. I am just wondering how to execute a R batch
I'd like to recommend to open the pdf() device (and to plot in)
directly. There is no reason to use the windows() device in BATCH mode,
if you want to produce PDF.
Lapointe, Pierre wrote:
First of all, I apologize for the triple post, but I did not see that the
word wrap on the r-help list site
First of all, I apologize for the triple post, but I did not see that the
word wrap on the r-help list site would render my code unusable. So here it
is again. Hoping that this time it will work if you cut and paste it in
your Rgui.
I have a program that works well in Rgui but that does not work
Thank you, the word wrap did make it impossible.
For me
pdf(file=c:/CFTC.pdf,height=10,width=8,paper=letter)
## plotting
dev.off()
works in interactive mode or from a file. I don't understand why you are
going via dev.print(), nor what exactly what is different about your
invocation of `batch
Hi,there
I'm doing some R batch jobs in Unix.
Something like
R prog1 output1 --save
R prog2 output2 --save
prog1 and prog2 are running at the same time and they are essentially same
except it contains different parameter values.
I was wondering if two processes will affect each other
I'm doing some R batch jobs in Unix.
Something like
R prog1 output1 --save
R prog2 output2 --save
prog1 and prog2 are running at the same time and they are essentially
same except it contains different parameter values. I was wondering
if two processes will affect each other
On Tue, 8 Feb 2005, Chao Zhu wrote:
I'm doing some R batch jobs in Unix.
Something like
R prog1 output1 --save
R prog2 output2 --save
Consider R CMD BATCH instead: it redirects the error/warnings too, which I
expect you would want to do.
prog1 and prog2 are running at the same time
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Received-SPF: none (hypatia: domain of [EMAIL PROTECTED] does not designate
permitted sender hosts)
X-Virus-Scanned: by amavisd-new at stat.math.ethz.ch
X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on
there may be other sophisticated ways to do this.
HTH,
Partha
Claudia Paladini [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/23/2004 03:54 AM
To: [EMAIL PROTECTED]
cc:
Subject:[R] Batch
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding
a script that contains just this single command with R
BATCH script the number 1160 is changed to 116+ 0 and this
results in a syntax error. Why is that and how can it be fixed? I
use R Version 1.8.1 under Linux SUSE 9.
Any help is appreciated!
Andreas
works fine.
Are you sure? It does not work for me, stopping in exactly the same place
as you report for batch, and assuming the line break is casued by the mail
system.
Also source() works well. However, when
calling a script that contains just this single command with R
BATCH script the number
source() works well. However, when
calling a script that contains just this single command with R
BATCH script the number 1160 is changed to 116+ 0 and this
results in a syntax error. Why is that and how can it be fixed? I
use R Version 1.8.1 under Linux SUSE 9.
What happens if you convert
Hello,
Does anyone know how to run R BATCH job in PHP? I tried the PHP function
exec(), shell_exec, passthru() to run R script, however, none of them
worked. If someone ever had experince to run R in PHP, could I ask for
an example code?
Thanks a lot!
Dongmei
Could someone tell me where I could find some instructions for running R in
BATCH mode? Especially regarding the format of the program or command file,
Thanks a lot
__
[EMAIL PROTECTED] mailing list
. The last relevant thread was quite recent.
Andy
From: Dongmei Liu
Hello,
Does anyone know how to run R BATCH job in PHP? I tried the
PHP function
exec(), shell_exec, passthru() to run R script, however, none of them
worked. If someone ever had experince to run R in PHP, could I ask
RTFM: see ?BATCH, or in case you are using Windoze, Help - FAQ on R for
Windows, click on Q 2.10.
Andy
From: Christian Landry
Could someone tell me where I could find some instructions
for running R in
BATCH mode? Especially regarding the format of the program or
command file,
Adaikalavan == Adaikalavan Ramasamy [EMAIL PROTECTED]
on Thu, 3 Jul 2003 11:32:21 +0800 writes:
Adaikalavan You can use save(object1, file=lalala.1),
Adaikalavan save(object1, file=lalala.2), ... and the use
Adaikalavan load() to restore the object1 and object2. Or
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
?save
is your friend. Write out dataobjects with different filenames.
Johanna Hardin [EMAIL PROTECTED] writes:
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*
PROTECTED]'
Subject: [R] 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
50 matches
Mail list logo