[R] BATCH

2007-06-18 Thread elyakhlifi mustapha
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

Re: [R] BATCH

2007-06-18 Thread Christophe Pallier
?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

[R] system() and R BATCH

2007-06-11 Thread Meinhard Ploner
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

[R] Batch processing in Windows

2007-06-08 Thread Sébastien Bihorel
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)

Re: [R] Batch processing in Windows

2007-06-08 Thread Gabor Grothendieck
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

Re: [R] Batch processing in Windows

2007-06-08 Thread Bos, Roger
, 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

[R] BATCH

2007-05-18 Thread elyakhlifi mustapha
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

Re: [R] BATCH

2007-05-18 Thread Stefan Grosse
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

[R] Batch

2007-05-14 Thread elyakhlifi mustapha
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 ?

Re: [R] Batch

2007-05-14 Thread Petr Klasterecky
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

Re: [R] Batch

2007-05-14 Thread Vladimir Eremeev
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 ?

Re: [R] Batch

2007-05-14 Thread Gabor Grothendieck
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

Re: [R] batch job GLM calculations

2007-01-15 Thread Milton Cezar Ribeiro
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

[R] batch job GLM calculations

2007-01-11 Thread Indermaur Lukas
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

Re: [R] batch job GLM calculations

2007-01-11 Thread Ken Beath
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

Re: [R] batch job GLM calculations

2007-01-11 Thread Prof Brian Ripley
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

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-11 Thread ivo welch
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:

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-11 Thread ivo welch
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 ;

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-11 Thread Duncan Murdoch
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

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-11 Thread Prof Brian Ripley
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

[R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-10 Thread ivo welch
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

Re: [R] --no-save and --save toggle from inside R? + BATCH stderr

2006-07-10 Thread Duncan Murdoch
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

[R] Batch printing of existing postscript files with file names included

2006-05-10 Thread Christoph Scherber
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

[R] batch mode problem

2005-12-13 Thread Jörg Schaber
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

Re: [R] batch mode problem

2005-12-13 Thread Uwe Ligges
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

Re: [R] batch file execution

2005-10-15 Thread Uwe Ligges
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

Re: [R] batch file execution

2005-10-15 Thread ronggui
, 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

Re: [R] batch file execution

2005-10-15 Thread jun xu
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

Re: [R] batch file execution

2005-10-15 Thread Uwe Ligges
. 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

[R] batch file execution

2005-10-14 Thread jun xu
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

Re: [R] batch file execution

2005-10-14 Thread sosman
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

Re: [R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-13 Thread Uwe Ligges
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

[R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-12 Thread Lapointe, Pierre
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

Re: [R] Batch mode problem: figure margins too large (code corrected for word wrap)

2005-05-12 Thread Prof Brian Ripley
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

[R] batch jobs question

2005-02-08 Thread Chao Zhu
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

Re: [R] batch jobs question

2005-02-08 Thread Rolf Turner
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

Re: [R] batch jobs question

2005-02-08 Thread Prof Brian Ripley
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

[R] Batch

2004-11-23 Thread Claudia Paladini
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

Re: [R] Batch

2004-11-23 Thread partha_bagchi
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

[R] R BATCH problem

2004-07-01 Thread Andreas Pauling
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

Re: [R] R BATCH problem

2004-07-01 Thread Prof Brian Ripley
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

Re: [R] R BATCH problem

2004-07-01 Thread Paul Roebuck
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

[R] run R BATCH job in PHP

2004-02-20 Thread 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 for an example code? Thanks a lot! Dongmei

[R] BATCH files

2004-02-20 Thread 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, Thanks a lot __ [EMAIL PROTECTED] mailing list

RE: [R] run R BATCH job in PHP

2004-02-20 Thread Liaw, Andy
. 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

RE: [R] BATCH files

2004-02-20 Thread Liaw, Andy
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,

RE: [R] Batch files in R

2003-07-03 Thread Martin Maechler
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

[R] Batch files in R

2003-07-02 Thread Johanna Hardin
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

Re: [R] Batch files in R

2003-07-02 Thread A.J. Rossini
?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*

RE: [R] Batch files in R

2003-07-02 Thread Adaikalavan Ramasamy
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