similar to: how to run .r batch file

Displaying 20 results from an estimated 6000 matches similar to: "how to run .r batch file"

2005 Jun 10
3
mask a matrix
Hi, there. I have two matrix with identical dimentions. matrix A contains information of 0 and 1, and matrix B contains data. I only want the data in matrix B where matrix A has 1's. the places where matrix A has 0's, I want NA's in matrix B. How do I do that?? Thank you very much. Lei Jiang Department of Chemsitry University of Washington Box 351700 Seattle, WA 98195 Phone:
2004 Nov 20
2
subset on data frame
I have a data frame. And I'd like to subset according to rownames. subset(mydataframe, rownames(mydataframe) == myrow, select = mycols) it turned out that "myrow" cannot be a vector. But I have multiple rows to pick. Is there a way to get around this problem?? Thank you for your help!! Lei Jiang Department of Chemsitry University of Washington Box 351700 Seattle, WA 98195
2004 May 04
2
error in file(file, "r"): all connections are in use
Hi, there. I am trying to read multiple files into R, but I got following message Error in file(file, "r"): All connections are in use. I clean up memory everytime I read in one file. Do i have to somehow release file connection everytime i read in one?? Thanks. Lei Department of Chemsitry University of Washington Box 351700 Seattle, WA 98195 Phone: 206-616-6882 Fax: 206-685-8665
2004 Mar 10
2
Rcmd BATCH command line arguments
I want to run Rcmd BATCH with R_DEFAULT_PACKAGE=base so it doesn't load any packages, but it seems to reject this argument because it does not start with a '-' or '--'. Is there a different argument that will work? Thanks. Benjamin Stabler Transportation Planning Analysis Unit Oregon Department of Transportation 555 13th Street NE, Suite 2 Salem, OR 97301 Ph: 503-986-4104
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...
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
2003 May 12
1
problems with Rcmd BATCH (PR#2965)
Hello, I have a test file that runs OK with > Rterm.exe --no-restore < filename.R When I try > Rcmd BATCH filename.R I get the following error message: Can't locate R/Utils.pm in @INC (@INC contains: C:\PROGRA~1\R\rw1070\share\perl c:/Perl/lib c:/Perl/site/lib .) at C:\PROGRA~1\R\rw1070/bin/BATCH line 22. BEGIN failed--compilation aborted at C:\PROGRA~1\R\rw1070/bin/BATCH
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 Nov 07
3
Rcmd? Where?
Hello, I got R 1.6.0 for windows and I need Rcmd, which was not included. Where can I get it? (I have to start R and give the name of the file with the R-commands on the command line, so that R is invoked together with its command-file "todo.R". Do I really need Rcmd for that? To write "Rterm todo.R" did not work.) Richard -- Richard M?ller - Am Spring 9 - D-58802
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
> This can be considered good news. You have just successfully performed > the job that is normally done by R CMD SHLIB when installing source > packages or running inline C++ code. The environment variables, at > least inside your running R session, are completely fine. > > Now we need to find out why R CMD SHLIB itself fails without producing > any output. Do you get any
2003 Apr 25
1
Rcmd vs. Rterm.exe
Hi r-hackers, What exactly is the difference in call r from a batch between this two ways: Rterm.exe ... Rcmd BATCH ... (I have to install perl first, I know) I haven't found any documentation about the difference (readme, FAQs, ...). I use rterm.exe, but is there a benefit in using rcmd? Can you explain me that or give me a link? Thanks Thomas Thomas Untern?hrer
2002 Sep 29
1
Runnin R prorams from a command line
Hello, I am a new R user, using version 1.5.1. I am attempting to run R programs from a dos command line (in win2000) and am having problems. My goal is to be able to use R from batch scripts in both windows and also in Linux eventually later. When I first ran "rcmd BATCH --help" it said that perl was not found. after installing perl and running again, I received the following error:
2018 Dec 20
2
OfficeScan deletes Rterm as malware
I'm not sure if the problem is actually with R but thought I should report this anyway. After Peter's email regarding the R 3.5.2 release today, I installed the Windows version right away (directly from CRAN and not from a mirror). Unfortunately, my institute's AV sofware TrendMicro OfficeScan 12.0.5147 Service Pack 1 stops and deletes Rterm.exe when running Rcmd.exe INSTALL with
2006 Oct 31
4
Syntax Error in Rcmd check on Windows
Dear R-developers, I am currently developing an R package called RLadyBug. When developing under Linux "R CMD check ." works fine without a warning. However, when I do "Rcmd check ." under Windows (version 2.4.0 and earlier) I get a ?syntax error" when checking the examples. This puzzles me somewhat, because a manual source("RLadyBug-Ex.R") on Windows works
2001 Mar 19
2
About another r-script input method for Rterm of RWin
Hello. I try to create stat sever by IIS 4.0 + ASP + VBScript with R for Win on NT Sever 4.0 SP6a. However VBScript denied redirection input of R script. Do Rwin developers have a plan to add a following function by adding an argument of command line? rterm --script 'r script path & file name' -------------- next part -------------- An HTML attachment was scrubbed... URL:
2002 Apr 08
1
Still having a problem with Rcmd - TMPDIR
Hello R-users: I'm experiencing difficulty in building a package in R 1.4.1 under Windows 2000. When I run Rcmd I get this: F:\r\library>f:\r\bin\rcmd check ringsim Please set TMPDIR to a valid temporary directory F:\r\library>f:\r\bin\rcmd build ringsim Please set TMPDIR to a valid temporary directory This problem was discussed over a year ago - the problem was attributed to a Perl
2006 Sep 29
1
Build error on Windows
Hi, I'm trying to build R-2.3.1 on windows, but make gives me following error while building pkg-base: ---------- Making package base ------------ adding build stamp to DESCRIPTION make[4]: *** [frontmatter] Error 1 make[3]: *** [all] Error 2 make[2]: *** [pkg-base] Error 2 make[1]: *** [rpackage] Error 2 make: *** [all] Error 2 Please note that R.exe, Rterm.exe, Rgui.exe, RCmd.exe are
2002 Oct 04
1
Rterm Rcmd failure
I tried running these under Windows XP from the dos prompt at C:/R/rw1050/bin Rterm --restore --save < test.R it returned > (block char)cError: syntax error. test.R has two lines: c<-1 c Do I need a file header for the test.R file? Then I tried: >Rcmd BATCH test.R it returned perl' is not recognized as an internal or external command, operable program or batch file. I have
2001 Feb 26
2
building packages in Windows under R 1.2.1
Prof Brian Ripley wrote [22.01.2001]: > The code is new in 1.2.1, and identical code in Rcmd clean works. It looks > like a Windows Perl bug. On my machines under NT4 and 98 this works > because -d foo seems to be always true! It is probably different on 2000. > > Try changing the line > > unless (-d $TMPDIR); > > to > unless (-e $tmpdir); >
2001 Jun 01
1
Questions from a beginner.
I have used S-PLUS for years. Now I am learning to use R in Windows'98. I downloaded the latest version and installed it as instructed. However, I cannot find answers from online help to the following questions I encountered. If any of you has quick answers to these questions, please drop me a couple of lines. Thanks. 1. Why does R change my working directory during a session? I often used