similar to: difference in behavior between batch and source

Displaying 20 results from an estimated 30000 matches similar to: "difference in behavior between batch and source"

2008 Oct 29
1
FW: Re: linux batch question
Hi Phil: That's EXACTLY what it is. Thanks so much. It's nice to know that the R Gods don't hate me. I hope it's okay that I'm going to cc r-help in case this thread comes up in the future and also so that other people who might want to help know that it's solved. Thanks again. On Wed, Oct 29, 2008 at 5:01 PM, Phil Spector wrote: > Mark: > >> delete
2008 Oct 29
2
linux batch question
I usually just run my R programs at the R command prompt but for my latest one I want to save any output that gets written to the screen so I am trying to use R CMD BATCH and send the output to an output file. I realize I could use sink at the prompt but I'd rather try to do it this way because I know that I used to do this in S+. So, I wrote a simple one line program called test.R which
2003 Jun 12
1
Problems for runing R in BATCH to generate PNG/JPEG files
Hello all: After I compile the R-1.7 with the follows in Linux7.3: configure --with-x --with-jpeglib --with-libpng --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib and make and make install. The R is able to generate PNG/JPEG files from the command line. However, when I put the same commands in a batch file and run: R --gui BATCH R.Batch.file It gave me a error in the
2007 May 14
1
Problem with R CMD BATCH on R-2.5.0 due to Sys.unsetenv not available
Hello, I am working on an unix SunOS machine ( sun4u sparc) and since the last release of R -R version 2.5.0 (2007-04-23) - , I have got troubles during the execution of batch command. For example with the instruction file multic.in >cat multic.in install.packages("multic","/bge/penel/R_install/R_2.5.0/lib/R/library",repos="http://cran.at.r-project.org")
2005 Sep 01
1
R CMD BATCH on scripts without trailing newline
If the last line of an R script does not have a trailing newline, a small errror is produced at the end of the script. Small example. If file eg.r contains one line: getwd() and there is no newline after the closing paren $ R CMD BATCH eg.r produces an error: $ cat eg.r.Rout R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 Patched (2005-09-01), ISBN 3-900051-07-0
2006 Jul 07
1
computational speed question
I have a 250 row by 20,000 column dataframe called temp and I do rowaverage<-function(x) rowmeans(temp[x],na.rm=TRUE ) averages<-tapply(seq(temp),names(temp),rowaverage) averages<-do.call('cbind',averages) , is it okay that it's been running for 4 hours or does this mean that something went wrong. I am on windows XP and i did ctrl alt delete and it seems like the process is
2006 Jun 11
2
regular expression question
I am very much a novice with regular expressions and I have spent a decent amount of time trying to do the following and I can't get it. i have variables that are of type character but they have number characters at the end. for example : "AAL123" "XELB245" "A247" I want a command that gives me just gives me the letter characters for each one. the letter
2002 Aug 23
2
try-error in batch and interactive mode (PR#1934)
I have a tiny R script performing two tasks, the first one of which may contain error. mammon(12)% cat z.R version options(show.error.messages = FALSE) try(b <- log("foo")) ## task 1 1 + 2 ## task 2 Running in batch mode from a solaries machine, the second task never got started; see below: mammon(13)% R BATCH --vanilla -q z.R mammon(14)% cat z.Rout >
2006 Jun 08
4
apologies if you aready received this ?
I am accessing my email account remotely so it seems to be acting strangely so I am not sure if this R question was received. I apologize if it was and thanks for any help you can provide. ----------------------------------------------------------------- Hi Everyone : As I mentioned earlier, I am taking a lot of Splus code and turning into R and I've run into another stumbling block that I
2002 Aug 20
1
try-error in batch and interactive mode
I have a tiny R script performing two tasks, the first one of which may contain error. mammon(12)% cat z.R version options(show.error.messages = FALSE) try(b <- log("foo")) ## task 1 1 + 2 ## task 2 Running in batch mode from a solaries machine, the second task never got started; see below: mammon(13)% R BATCH --vanilla -q z.R mammon(14)% cat z.Rout >
2006 Jun 11
2
seemingly simple read.table question
I have a file that I thought would be fairly simple to read in using read.table but I am having problems ( as usual ). each line of the file is of the form ( just 20 lines or so ) financials XXX, YYY, ZZZ automobiles RTR, ABC, TGH so the first field in the line is the industry and the other fields ( seperated by commas ) in the line are stock identifiers of stocks in that industry. note that
2006 Jun 08
1
[Fwd: R 2.20 Windows XP anaolgue of Splus unix() command ?]
>Hi Everyone : As I mentioned earlier, I am taking a lot >of Splus code and turning into R and I've run into >another stumbling block that I have not been >able to figure out. > >I did plotting in a loop when I was using Splus on unix >and the way I made the plots stop so I could >lookat them as they got plotted ( there are hundreds >if not thousands getting plotted
2003 Apr 17
2
BATCH and tcltk
Hi R-hackers I try to write a batch (in Windows, i have to use!) with Rcmd BATCH D:\Test.R D:\Test.Rout and Rterm.exe --no-restore --no-save < D:\Test.R > D:\Test.Rout. In my file Test.R are any tk-codelines (like: Window1 <- tktoplevel(); ... tkbutton...). It works not interactifly, what is written in Rcmd BATCH --help. Exist there a way to do it all the same? Please help...
2008 Dec 13
2
odd behavior when multiplying data frame by an element
could someone explain what is happening below ? I was trying to solve a related question on the list and then , as I was solving it, I was getting strange answers and then I noticed below. It's obviously not a bug but I don't get it. Thanks. m <- data.frame(class = c("birds", "planes"), feather = c(1,3), jet = c(2,4)) d1 <- data.frame(jet = c(10), feather =
2008 Dec 13
2
odd behavior when multiplying data frame by an element
could someone explain what is happening below ? I was trying to solve a related question on the list and then , as I was solving it, I was getting strange answers and then I noticed below. It's obviously not a bug but I don't get it. Thanks. m <- data.frame(class = c("birds", "planes"), feather = c(1,3), jet = c(2,4)) d1 <- data.frame(jet = c(10), feather =
2011 Nov 06
2
still working on building R from source
Hi Everyone: Gavin's been so generous and patient that I figured I'd give him a break and send this snag to the list. When I do get this working, I will send an "How to build R from the tarball " instructions message to this list for posterity's sake ( and myself and anyone else who doesn't know how to build R from the tarball ). So, here's my latest snag: Gavin
2003 Nov 26
2
creating graphs in BATCH mode
Hi a short question is there a way to generate jpeg's etc. in BATCH mode ? The following example does not work in BATCH: I have a file called Rgraph.in: *rsy at puffin*[15:11][~][57]> cat Rgraph.in jpeg("/tmp/my.jpg") hist(runif(10000)) dev.off() *rsy at puffin*[15:11][~][58]> *rsy at puffin*[15:09][~][55]> R BATCH Rgraph.in OUT 4.120u 0.160s 0:05.17 82.7% 0+0k
2009 Oct 25
4
Multiple line commands in R scripting
I'm wondering whether there is a character to let R know to expect more input for a command on subsequent lines. Here is an example: test_1.R: x <- c(1,2,3,4) / c(1,2,3,4) x R CMD BATCh test_1.R produces test_1.Rout: > x <- c(1,2,3,4) > / c(1,2,3,4) Error: unexpected '/' in " /" Execution halted test_2.R: x <- c(1,2,3,4) / c(1,2,3,4) x R CMD
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
2006 May 17
1
Renaming Rplots.ps from BATCH scripts.
I often use R CMD BATCH to run my files (e.g. script.R), and get the output recorded in script.Rout -- this is great. On my setup (R.2.3.0 on linux), if any plots are created, they get stored in Rplots.ps. This can get confusing if I have several batch scripts in one directory. I've written a simple shell script to rename Rplots.ps to e.g. script.Rout.ps so that later I can easily identify