similar to: Running R file from Command line.

Displaying 20 results from an estimated 12000 matches similar to: "Running R file from Command line."

2007 Apr 20
2
R: Appending the files
Hello R-Experts, I am a beginner to R. Can someone please look at my problem I am trying to append the files in R but couldn't get the answer properly. My code is mat1<-matrix(0,2,3) mat2<-matrix(1,2,3) write.table(mat1,"foo.csv",sep=",",col.names=NA) write.table(mat2,"foo.csv", sep=",", col.names=NA, append = TRUE) I am getting a warning
2007 Jul 26
1
Regression with Missing values. na.action?
Hi all, Can you please tell me what is the problem here. My regression eq is y = B0 + B1X1 +B2X2 +e And i am interested in coefficient B1 I am doing regression with two cases: 1) reg<-lm(y ~ X1 + X2, sam) where sam is the data 2) reg<-lm(y ~ X1 + X2, sam, na.action= na.exclude) . I have missing values in X1 but the values of coefficient is not consistent in two cases. Actually B1 in
2007 Sep 13
3
Someone Using Java/R Interface--- JRI ?
Hi all, I am writing R code and I want to interface with JAVA i.e. I want to call R from JAVA. That's why i have installed JRI on my machine. There is also documentation available in "Javadoc". But as i am very new to JAVA and well as R, I don't understand much of it. If someone is using this package i.e. JRI, please let me know whether i am going in right direction or not.
2012 May 04
1
Help Required
On Fri, May 4, 2012 at 6:50 PM, vaibhav srivastava <vaibhavcse30 at gmail.com>wrote: > > Hi all, > Since I want to run Samba without modifying my existing kernel. Please > tell me what are the requirements for the same. > What are the package list required in kernel before installing samba. > thanks in advance. > -- > Thanks and Regards, > Vaibhav Srivastava >
2003 Mar 12
3
Syncing Multiple servers simultaneously
Hi all; I am sure this question has been brought up before, but I could not find any information in the FAQ or docs etc. Quick question; Is there a way of syncing multiple servers simultaneously from 1 source server? Thanks, -- Vaibhav Goel extension 6347
2009 Apr 06
2
Converting Number into Integer in ruby
I am working with a legacy oracle database. The primary key is not defined as an integer but as a number. This results in a url with an id as a number, such as 1234.0 instead of 1234. It works fine, but I would prefer 1234 to be displayed in the url. I have attempted to redefine the model id method to convert to an integer using to_i method, but no luck. Any ideas? Thanks, Vaibhav -- Posted via
2005 Aug 26
4
Ztmonitor values when zap channel is onhook
Hello, In my quest to figure out the source of the random echo on our shiny new asterisk install, I have been using ztmonitor on the TDM400p channels for the good part of today. I have 2 TDM400p cards with 8 FXO modules and 6 pots lines connected to them (last 2 channels are unused but configured in zaptel). Even when the lines are onhook, the Tx values settle down to 0 but the Rx values still
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
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
2008 Jan 04
1
R command line arguments
Hi, I would like start R in BATCH mode and submit my own parameters. Or in other words, I would like to specify variables from the command line and execute a script using those. I have been looking at commandArgs and calling R from the command line under bash: R CMD BATCH --no-save --args -filename="$filname" -- r-test.R r-test.Rout The problem here is, if $filename contains
2018 Feb 02
4
command line fails
Hi - Think this is quick help. Not sure how to trap what is causing my simple script to run fine in R, but fail immediately when called from rscript. I can put all sorts of traps in the script itself, but when called from the command line the r window simply flashes and closes. There's probably a way to find out why rscript is failing, but I don't know it and can't seem to find it
2018 Feb 02
0
command line fails
On 2/2/2018 4:52 AM, Michael Ashton wrote: > Hi - Think this is quick help. Not sure how to trap what is causing my simple script to run fine in R, but fail immediately when called from rscript. I can put all sorts of traps in the script itself, but when called from the command line the r window simply flashes and closes. > > There's probably a way to find out why rscript is failing,
2009 Jun 02
1
Problem downloading webpages using batchfiles and RCurl from command line in Vista Basic - couldn't connect to host
Dear all, I am having a problem downloading webpages through R when i run it in the DOS window under Windows Vista Basic. I have downloaded the batchfiles from http://code.google.com/p/batchfiles/ and have successfully set the PATH. I open up 'Command Prompt' in Vista and type (after the C:\...> stuff): ### START ### C:\Users\Karen>Rscript -e "library(RCurl);
2007 Aug 31
1
About "=" in command line in windows.
It seems, I don't understand something, or there is a bug in R. I have made some experiments after my yesterday post about using "=" with -e switch to the Rscript. Now, I've found: (1) C:\users\wl\trainings\r>rscript --verbose -e "mean(x=1:3)" running 'C:\Program Files\R\bin\Rterm.exe --slave --no-restore -e mean(x=1:3)' Error in -args : invalid
2018 Feb 02
0
command line fails
On 02/02/2018 7:52 AM, Michael Ashton wrote: > Hi - Think this is quick help. Not sure how to trap what is causing my simple script to run fine in R, but fail immediately when called from rscript. I can put all sorts of traps in the script itself, but when called from the command line the r window simply flashes and closes. > > There's probably a way to find out why rscript is
2018 Feb 02
2
command line fails
I don't think it's the path or the slashes. I run other files in this same manner, with the same path to the script itself, and they go off without a hitch. Although this is the first time I am using 3.4.3, and the only script I am using that version of R for at the moment. Having said that, I did TRY reversing the slashes and got the same result. :-) Michael Ashton, CFA Managing
2018 Feb 02
0
command line fails
On 02/02/2018 8:20 AM, Michael Ashton wrote: > I don't think it's the path or the slashes. I run other files in this same manner, with the same path to the script itself, and they go off without a hitch. Although this is the first time I am using 3.4.3, and the only script I am using that version of R for at the moment. > > Having said that, I did TRY reversing the slashes and
2018 Feb 02
2
command line fails
Fascinating. The script runs fine in 3.2.5, but won't run in 3.4.3 even with ALL lines commented out. I have no idea what that means. I can't imagine I found a 3.4.3 bug no one knows about. Michael Ashton, CFA Managing Principal Enduring Investments LLC W: 973.457.4602 C: 551.655.8006 -----Original Message----- From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] Sent: Friday,
2005 Sep 23
1
R's parsing of command line arguments using commandArgs()
Hi all, I am setting up some R program files for use by our DB programmers to enable them to utilize some R functions which will be called from within TCL code. R has been installed on an RHEL server and R will process the results of SQL queries against an Oracle database. In some cases, they will generate a data file to be read in and processed by R, in others they will simply make the
2020 Mar 19
2
R CMD check --as-cran attempts to hide R_LIBS_USER but fails
AFAIU, 'R CMD check --as-cran' tries to hide any site and user package libraries by setting R_LIBS_SITE and R_LIBS_USER. However, contrary to R_LIBS_SITE, it fails for R_LIBS_USER and the user's personal library is still available for test scripts. Should I revise my assumptions, or is that intentional? The short version. Shouldn't: $ R_LIBS_USER='' Rscript --vanilla -e