similar to: R with command line

Displaying 20 results from an estimated 40000 matches similar to: "R with command line"

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 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
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"
2005 Mar 18
4
Is a .R script file name available inside the script?
Hi, if we have a file called Rscript.R that contains the following, for example: x <- 1:100 outfile = "Rscript.Rout" sink(outfile) print(x) and then we run >> source("Rscript.R") we get an output file called Rscript.Rout - great! Is there an internal variable, something like .Platform, that holds the script name when it is being executed? I would like to use
2015 Dec 05
2
R_PROFILE_USER
In my shell environment, I have set a path to R_PROFILE_USER. The file, Rprofile.R, is a collection of small hacks. I want to build rstudio-server from source. Best is to $ unset R_PROFILE_USER before. Unfortunately, this has no effect on my system. ----------------------------------------------- poisonivy at poppy ?? ~ % R *** Successfully loaded .Rprofile *** Welcome back poisonivy working
2004 Aug 06
1
Need a command-line splicer of audio files for Linux
sox works great. to splice out a 10-minute segment starting 12m34s into a .wav file: sox infile.wav outfile.wav trim 12:34 10:00 to splice two segments together, well: cat seg1.wav seg2.wav > joined.wav <p>samurai.fm wrote: > SOX might work? > > -----Original Message----- > From: owner-icecast@xiph.org [mailto:owner-icecast@xiph.org] On Behalf Of > Mailing List Receiver
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
2007 Nov 08
2
Sweaving single master file to get multiple individualised reports
Hi Apologies in advance if I've missed something obvious. I have read the Sweave manual, the first article in R News, looked at the Help pages, googled Sweave and words like loop, output, files, multiple, done much the same on R site search (in case I missed something on Google) and I couldn't find exactly what I'm after. What I'm trying to do ?---------------------- Make
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
2009 Sep 07
2
Writing R Scripts and passing command line arguments
Hi Guys I am Abhishek, primarily a bioinformatician. I have recently started using a lot of R thanks to some excellent packages available. Lately I have felt the need to batch process few of the R scripts I have been working with and strangely enough I am not able to find a good resource on how to best do this. I did find few old threads on the archives but none convinced me much. So here I am
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
2005 Sep 08
1
execute R expression from command line
Can I execute an R expression from the command line without having it in an infile, something like perl's -e flag. So it would look like: R {Rexpression;} > outfile
2011 Jun 16
1
Read file line by line
Hi I got a file that looks like this: (i have shorten it alot the real file is over 200k rows long) chr10 rs7909677 101955 A G 0 1 0 1 0 0... chr10 rs2436025 238506 C G 1 0 0 1 0 0... chr10 rs11253562 148946 C T 0 1 0 0 1 ... chr10 rs1105116 230788 G T 0 0 1 0 0 1... chr10 rs4881551 149076 A G 0 1 0 0 1 0 0 1... What I want it to go trough the file and get the highest value in the third column
2015 Dec 05
1
R_PROFILE_USER
On Sat, Dec 5, 2015, 9:39 PM peter dalgaard <pdalgd at gmail.com> wrote: > On 05 Dec 2015, at 18:07 , arnaud gaboury <arnaud.gaboury at gmail.com> wrote: > > In my shell environment, I have set a path to R_PROFILE_USER. The > file, Rprofile.R, is a collection of small hacks. > > I want to build rstudio-server from source. Best is to $ unset > R_PROFILE_USER
2009 Jan 05
1
Process File Line By Line Without Slurping into Object
Dear all, In general practice one would slurp the whole file using this method before processing the data: dat <- read.table(filename) or variations of it. Is there a way we can access the file line by line without slurping/storing them into object? I am thinking something like this in Perl: __BEGIN__ open INFILE, '<' , 'filename.txt' or die $!; while (<INFILE>) {
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
2017 Apr 06
3
failure of make check-all
This run was done this AM on my linux box, and older 32 bit Dell optiplex (core 2 duo). The failure message is at the very end. (It's due to be replaced in a couple of weeks.) The sequence of steps was svn up tools/rsync-recommended ./configure make make check-all |& tee zzz Terry T. Result of ./config R is now configured for i686-pc-linux-gnu Source directory: .
2012 Oct 27
2
Getting error while running unix commands within R using system() function
Hello All, I use Cygwin ( unix on windows) heavily for all my text data processing. Also use Cygwin inbuilt *R* to do numerical processing. *My aim is to integrate R and unix commands to avoid heavy memory usage that R takes normally.* I can run many unix commands using system("some unix command or sh script.sh or even R file itself ") inside R. But, When I tried to run the command
2003 Aug 25
6
Syncronize Monitored Calls
I thought I would post this in case it might be of any use to anyone. Not anything special but it does work. Keep in mind you need sox and wmix. Here is some relevant exerpts of my extensions.conf using John Todds macro. [globals] CALLFILENAME=foo FOO=foo CALLERIDNUM=foo [default] exten => 287,1,Macro(dial,SIP/agent20002|20) exten => 287,2,Voicemail(u287) exten =>
2011 Aug 24
1
[PATCH] febootstrap-supermin-helper: Replace objcopy call for embedding init binary
objcopy needs "output-target" and "binary-architecture" parameters which makes it necessary to keep a list of known architectures. The bin2s.pl script generates input for the GNU assembler which should produce an object file that is equivalent to that produced by objcopy. I have successfully tested the change on an amd64 Debian/unstable system. --- helper/Makefile.am |