Displaying 20 results from an estimated 5000 matches similar to: "Yet another batch mode question"
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
2012 Oct 29
6
export variable from bash to R
Dear R experts
This probably seems very easy to you guys, but I'm a beginner and would be
really glad if someone helped me with this:
I am trying to automate the execution of an R script (let's call it
"myscript.R") by passing a variable from a bash script to myscript.R.
I know I can use the command Rscript, but I don't know how to declare in
bash which variable will be
2008 Mar 02
2
[LLVMdev] Struct layout assumptions
A question about the layout of structs: I decided to make my vtables out
of structs rather than arrays. In other words, instead of being a table
of opaque pointers, I decided to individually declare each entry with
the correct type for that method. I figure that the various optimizers
could do a better job if I preserve the type info.
OK, so we come to the issue of inheritance: Suppose I have
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
2011 Jun 01
1
Function to save plots
Hello,
I'm using ROCR to plot ROC Curves and I want to automate the saving of plots
into PNG files using a custom function.
My data frames are named like test1, test2, test3. Each data frame has three
variables: method1, method2, goldstandard.
Right now, for each plot I have to run:
png('test1_method1.png')
plot(performance(prediction(test1$method1, test1$goldstandard),
2010 Nov 02
2
get the scripname within the executed myscript.r
Dear R-users!
Is there a way to obtain the name of the executed myscript.r, i.e. when
cmd> rscript myscript.r
is executed? (The name of the script in this case is "myscript.r")
Here is the explanation of why I would like to get that: Why: I have
prepared a set of scripts (decompose_data.r, plot_with_higher_resolution.r,
plot_3D.r, etc.) placed in a root directory at one place. I
2005 Sep 25
1
Prototype "classes" and inheritance
JavaScript doesn''t (yet) have a notion of classes. Prototype.js just
adds a suitable convention for implementing them. It provides a way to
create a new class by extending a base class using Object.extend, but
it doesn''t handle method inheritance. There are ways of doing
implementing this through traversing the chain of prototypes, but I''m
not sure they are
2010 Aug 20
2
U value from wilcox.test
Dear all,
I want to compare the efficiency of 2 methods in extracting proteins from
algal samples. I collected 6 independant algal samples and I extracted 3 by
the method 1 and 3 others by the method 2.
So I have 2 groups of 3 samples, that are not paired. I would like to know
if the results obtained by these 2 methods are significantly different, I
hope method 2 to be more efficient than method
2002 Feb 27
3
BATCH mode
Dear R users
I wonder if it is possible to run R code in the batch mode like in Splus
(Splus5 scriptfile outputfile).
Any hints?
Andreas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the
2010 Jan 04
3
how to draw abline correctly?
Hello, I am frastruated with this graph, just cannot get what I need. Thank
you for any suggestions or help. I really appreciate it. I wrote the
following code, but there are 3 problems
1, the red line is added on the graph but without any marker on the y-axis.
I want to display the number '.1361' on the y-axis. So people can easily
tell 'method 2' gets a constant estimate, which
2011 Sep 07
1
process id of an R script
I have a script that runs as a cron job every minute (on Ubuntu 10.10 and R 2.11.1), querying a database for new data. Most of the time it takes a few seconds to run, but once in while it takes more than a minute and the next run starts (on the same data) before the previous one has finished. In extreme cases this will fill up memory with a large number of runs of the same script on the same data.
2006 Jun 22
1
Change of controller name and SEO issue
Hi,
I developed an app with cetain controller names. Now that the app is
catching up I''m trying to change the controller names to be better aligned
with the business.
This is what I have now.
http://localhost/foo/method1
http://localhost/foo/method2
http://localhost/foo/method2/a
http://localhost/foo/method2/a/b
http://localhost/foo/method2/a/b/c
http://localhost/foo/method3
I would
2013 Aug 27
1
return the name of source.
Is there a fuction that will allow me to retrun the filename for a script
from within that script.
fir instance
If I have a script "myscript.r":
FileName<-unknown.fucntion()
print(FileName)
and run it
source("myscript.r")
will return
"myscript.r"
Thanks
Nevil Amos
[[alternative HTML version deleted]]
2005 Jan 28
1
Windows Batch File
Hiya,
I have read the FAQ for windows and read point 2.10. I setup a dos batch
file which contains the following line:
C:\progra~1\R\rw2001\bin\Rterm.exe --vanilla
I then tried:
R CMD BATCH --argument myscript.R result.out
then it started R. I thought by running R CMD BATCH executes R
non-interactively. I am working on a Windows XP. I tried it on a Mac OSX and
that worked fine. So I'm not
2008 Nov 23
1
tklistbox - R-Objekt
Hello, I have a problem with a tklistbox. The user should be able to choose
one out of two calculation methods needed for further calculations. My
r-script for that purpose looks like that:
require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=4,selectmode="single",background="white")
tkgrid(tklabel(tt,text="select method for LAI
2018 Sep 28
4
Simple bash question
I am calling a bash script and passing in somestring that includes a "$"
myscript "$plusmore"
I want to assign in the myscript the $1 arg to something like
MYTEXT="$1"
when I do that I dont get what I'm expecting. if I do
MYTEXT='$1'
I still dont get what I'm expecting.
On the first assignment of MYTEXT I do not want the "$" to be
2006 Jul 06
3
Calling Method
Is there a way to call a method if I only have a string that contains
the method name.
For example:
@methods = [''method1'', ''method2'', ''method3'']
@step = 1
# I want to call method2 which has a definition in this class
--
Posted via http://www.ruby-forum.com/.
2008 Oct 23
1
ManageSieve textual fronend wanted
Is there some simple textual frontend to the ManageSieve protocol somewhat easier to use than gnutls-cli? I.e. something to use like
managesieve -u ef putscript myscript < /tmp/myscript
Password:
managesieve -u ef setactive myscript
Password:
simply doing the TLS authentication and length computation for me.
2011 Oct 12
4
How to access controller's instance variable in a js.erb loaded by javascript_include_tag?
Hello!
In rails 3.1 app I have a controller UsersController with ''show'' action.
show.html.erb contains:
<% content_for(:head) do %>
<%= javascript_include_tag ''myscript'' %>
<% end %>
<p>Hello @user.name</p>
And I have this in myscript.js.erb
$jQuery(document).ready(function() {
alert(<%= @user.name %>);
});
@user is being
2018 Oct 17
2
dovecot passdb driver=checkpassword as external script for block ip
Refer to
https://dovecot.org/pipermail/dovecot/2015-March/099971.html
https://wiki.dovecot.org/PasswordDatabase
I tried to repeat the same thing.
Set these passdb:
passdb {
args = /myscript.sh ip=%r
driver = checkpassword
result_failure = return-fail
result_success = continue
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext ( my working auth method )
driver = sql
}
Created