Displaying 20 results from an estimated 10000 matches similar to: "problem with command line arguments"
2006 Mar 10
1
need help in tune.nnet
Dear R people,
I want to use the tune.nnet function of e1071 package to tune nnet .
I am unable to understand the parameters of tune.nnet from the e1071 pdf
document.
I have performed nnet on a traindata and want to test it for class
prediction with a testdata.
I want to know the values of size,decay,range etc. parameters for which
the prediction of testdata is best.
Can anyone please tell me
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
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 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
2000 Aug 22
2
Command Line Arguments passed to R
Is there a way to pass command line arguments to R for use in BATCH mode
or something similar?
--
-Alex Morgan Homepage: http//pubpages.unh.edu/~amorgan
AIM login: HomeySage
"Anyway, no drug, not even alcohol, causes the fundamental ills of
society.
If we're looking for the source of our troubles, we shouldn't test
people
for drugs, we should test them for stupidity,
2008 Jul 01
4
passing a variable at the command line
Dear R People:
I have used
./R --no-save -q -f e.in >stuff.out
with great success on SUSE10.1 with R-2.7.1.
My question is, please: is there a way to pass in a variable to the
e.in file? I'm fairly sure that the answer is no, but thought I'd
double check.
Thanks in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
2009 Aug 20
1
Command line option to an R script running through Rscript
Hi,
I know that I can use the following script to get the command line
options for an R script. But the output shows two many irrelevant
arguments. For example, I only want to pass "a", "b" and "c" to the
script. The first 5 elements in the variable 'args' are not what I
want. I am wondering what is the correct way to pass command line
options to an R script.
2011 Mar 23
1
How identify args into R, sent from a command line.
Hi,
For example, I have several variables in php, like
var1 = 1, 2, 3, 5, 6
var2 = 3, 1, 8
var3 = 8, 10, 4, 0, 9, 1
I sent the arguments to R, with this line:
'/usr/bin/R --vanilla --slave --args '.$var1.' '.$var2.' '.$var3.' < script.r'
In my "script.r" I can read the arguments whit this line:
args=(commandArgs(TRUE))
args=as.numeric(args)
args
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
2010 Aug 11
3
Using command line --file or -f
*What I want to do:
*Create a windows shortcut that will start the R gui **and**
simultaneously source a file
*What I have already tried:
*This almost works, but it's not the interactive R GUI:
R --no-save --sdi -file="C:\SomePath\example.R"
These open the R GUI, but doesn't recognize -f --f --file -file
RGUI --no-save --sdi -file="C:\SomePath\example.R"
2024 Aug 23
1
Linear regression and stand deviation at the Linux command line
? Thu, 22 Aug 2024 13:07:37 -0600
Keith Christian <keith1christian at gmail.com> ?????:
> I'm interested in R construct(s) to be entered at the command
> line that would output slope, y-intercept, and r-squared values read
> from a csv or other filename entered at the command line, and the same
> for standard deviation calculations, namely the standard deviation,
>
2011 Mar 14
1
Rscript, hashbang, and arguments
Hi,
I have a bunch of R scripts which have the hash bang !/usr/bin/env Rscript
and I typically run these scripts by passing in some parameters like this:
./nameOfRScript arg1 arg2 ...
I know Rscript has the option to run in --vanilla. Where exactly do I
insert the --vanilla option? When I do something like this:
./nameOfRScript --vanilla arg1 arg2 ...
And I try to access the commandArgs,
2024 Aug 22
2
Linear regression and stand deviation at the Linux command line
R List,
Please excuse this ultra-newbie post.
I looked at this page but it's a bit beyond me.
https://www2.kenyon.edu/Depts/Math/hartlaub/Math305%20Fall2011/R.htm
I'm interested in R construct(s) to be entered at the command
line that would output slope, y-intercept, and r-squared values read
from a csv or other filename entered at the command line, and the same
for standard deviation
2014 Feb 25
2
Introduction mail
Hi my name is Abhinandan Bhattacharjee i am student of Computer Science
stream of netaji subhash engineering college, kolkata, West bengal, India.
I know php,c,c++,java and working on python iike your organistion and would
love to work for it in thi years gsoc please guide me what i need to do
i have done some projects these are
-- https://github.com/avinandan/avenir
2013 Mar 08
0
Passing command line arguments using parallel package
Hello,
I was wondering if there is a way to pass a custom command line argument to slave processes using the parallel package. I need to do this because I have some logic in my .Rprofile that checks what arguments it was called with using commandArgs() and performs certain actions only if it was given a particular argument. I am running the following code on a Windows PC to start slave processes:
2007 Jul 18
1
passing a parameter to a file from command line
Hi,
I have a file fileFoo.R, say that contains these two lines, invoking
function foo that is specified in "foo_details.R":
source("foo_details.R")
foo(parameter1)
I want to specify and pass parameter1 in my command line when invoking R
in linux: R --no-save <fileFoo.R.
How can I do that?
And how can I retrieve the value of parameter1 in my fileFoo.R function
2014 Feb 26
2
Introduction mail
Thanks for replying i was thinking of working on
PHP binding improvement project i thnk it fits my skills.
how should i start help..
On Wed, Feb 26, 2014 at 5:11 PM, Olly Betts <olly at survex.com> wrote:
> On Tue, Feb 25, 2014 at 08:12:40PM +0530, Avinandan Bhattacharjee wrote:
> > Hi my name is Abhinandan Bhattacharjee i am student of Computer Science
> > stream of netaji
2007 Mar 06
3
Passing command line parameters to a script
Hi,
Does any one know if it is possible to create an R script that can use
command line parameters. I can execute an R script from the command line,
but I cannot figure out how to pass parameters to the script. The only
resources I have found seem somewhat involved or incomplete.
Any help is appreciated.
Akintayo
[[alternative HTML version deleted]]
2009 Jul 13
2
how to run a R program with input arguments
I am a beginner in R and know only a little about it yet. I have a script
written in R language, named as "a.txt" for example. I am using a Linux
machine, at present I only know that I can type "R" in the terminal and then
copy-paste the content in "a.txt" to the R's interface to execute the
program. However, I want to know if there is any method that allows me to
2008 Oct 15
0
Iterative estimation of linear regression model
Dear all
I am intrested in making iterative estimation (thro' loop statements) of, say, linear regression model. For this purpose, I have written the following programme and that I have made use of a sample data (viz., exp.txt):
?
Programme:
?
# Linear regression modelling with sample data (try5.txt)
# Repeated estimation through loop statement