Displaying 20 results from an estimated 20000 matches similar to: "R script in batch mode"
2006 Nov 27
1
error in xYplot from Hmisc. (PR#9389)
Hello,
I was simply doing a graph, but an error repeatdly occurs. Any idea why?
(this only happens in the latest R version, I am a windows user).
Thank you,
Marta
library(Hmisc)
> example(xYplot)
xYplot> d <- expand.grid(x = seq(0, 2 * pi, length = 150),
p = 1:3, shift = c(0, pi))
xYplot> xYplot(sin(x + shift)^p ~ x | shift, groups = p, data = d,
type = "l")
2013 Dec 08
3
Why daisy() in cluster library failed to exclude NA when computing dissimilarity
Hi,
According to daisy function from cluster documentation, it can compute
dissimilarity when NA (missing) value(s) is present.
http://stat.ethz.ch/R-manual/R-devel/library/cluster/html/daisy.html
But why when I tried this code
library(cluster)
x <- c(1.115,NA,NA,0.971,NA)
y <- c(NA,1.006,NA,NA,0.645)
df <- as.data.frame(rbind(x,y))
daisy(df,metric="gower")
It gave this
2009 Oct 27
2
User input when running R code in batch mode
Hi
I've been stumbling over a simple issue that undoubtedly has an easy
solution. I need to have some way for a user to enter some values
into a data frame which R will then work on. I know that data entry
should ideally be done otherwise and I should use R only for the
computation, but R's data manipulation abilities makes it efficient
for me to write the entire code in it.
When I ran
2012 Feb 07
6
Setting up infile for R CMD BATCH
Suppose I create an R program called myTest.R with only one line like
the following:
type <- as.integer(readline("input type (1: type1; 2: type2)? "))
Then I'd like to run myTest.R in batch mode by constructing an input
file called answers.R with the following:
source("myTest.R")
1
When I ran the following at the terminal:
R CMD BATCH answer.R output.Rout
it failed
2008 Aug 30
1
Saving 3d objects vs. pausing in non-interactive (scripted) mode
I am using the RGL library in scripted (non-interactive) mode, but wish to
give the data analyst an opportunity to exam the 3D plots. The "data
analysts" understand the data, but not R. My intent is to provide simple
Windows (XP) batch files that call R and automatically pass scripts to it,
and thus permit the analyst to easily access graphics without having to cut
and paste commands
2006 Nov 14
2
how to check a R object's property
Hi,
I am writing a generic function and need to check if an arg is a data
frame or not. I could use
is.null(dim(x)) to get what i want. But i want to know if there is a
function which can tell me whether it is a list, a numeric vector, a
data frame, a factor and so on. Can R do that?
thanks.
--
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.
"Did you always know?"
"No, I did
2007 Sep 14
2
unbalanced effects in aov
Hi, I have been having some trouble using aov to do an anova, probably because I'm not understanding how to use this function correctly. For some reason it always tells me that "Estimated effects may be unbalanced", though I'm not sure what this means. Is the formula I am using written incorrectly? Below is the code I am using along with the data:
> my.data
response
2010 Jun 14
5
cooked mode sessions
Picking up on a couple really old threads (e.g.
http://osdir.com/ml/ietf.secsh/2001-09/msg00003.html ) I've finally gotten
around to this. The EXTPROC support on Linux is missing, but you can find
kernel patches for that here
http://lkml.org/lkml/2010/6/11/403
I've also fixed up the netkit telnet / telnetd code to work with EXTPROC /
LINEMODE on Linux, those patches are here
2005 Apr 15
1
pp-test in timeseries
TestĀ for stationarity (pp-test). In R source code all other command executions I understood, but how I am getting the ssqrtl value
ssqrtl <- .C ("R_pp_sum", as.vector(u,mode="double"), as.integer(n),
as.integer(l), trm=as.double(ssqru), PACKAGE="ts")
please explain the above command.
Thanks in advance
Ramesh
[[alternative HTML version
2008 Oct 20
2
pass longer arguments to adj of text()
Hi,
text()'s pos does handle more dimensional labels, while adj does not -
or how can I pass an array to text() and use the adj argument (skyblue
text)?
plot(-1:1,-1:1)
text(c(0,0),c(0,0),c("a","b"),pos=c(1,2),col="red")
text(c(0,0),c(0,0),c("a","b"),adj=cbind(c(1,2),c(1,1)),col="skyblue")
Thomas
2006 Sep 15
1
execution of source() command
Hi
Linux SuSE 10
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 3.1
year 2006
month 06
day 01
svn rev 38247
language R
version.string Version 2.3.1 (2006-06-01)
I have two questions concerning the source("test.R") command.
1) Is there any
1998 Jan 16
2
ESS-mode and X-emacs problem
kim.pilegaard@risoe.dk (Kim Pilegaard) writes:
> When I try to invoke R from xemacs I get the following responses:
>
> ESS starting data directory? ~/
>
> "Process R is not running".
>
> This is what the R buffer shows:
>
> R : Copyright 1997, Robert Gentleman and Ross Ihaka
> Version 0.61.0 Alpha (December 21, 1997)
>
> R is free software and
2002 Aug 23
2
try-error in batch and interactive mode (PR#1934)
I have a tiny R script performing two tasks, the first one of which may
contain error.
mammon(12)% cat z.R
version
options(show.error.messages = FALSE)
try(b <- log("foo")) ## task 1
1 + 2 ## task 2
Running in batch mode from a solaries machine, the second task never got
started; see below:
mammon(13)% R BATCH --vanilla -q z.R
mammon(14)% cat z.Rout
>
2005 Apr 06
6
unable to run script/console on OS X
Hi.
Lighttpd''s merrily serving Rails on OS X for me, but I can''t for the
life of me get script/console to run.
I get, always:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'': No such file to load -- readline (MissingSourceFile)
(And then a chain of errors leading from that point...)
I followed Jason''s manuals.textdrive
2010 Feb 05
2
Pause in non-interactive mode
Dear all,
I've found this nice code fragment on the web
(from Jan T. Kim if I'm correct):
hitReturn <- function(msg)
{
invisible(readline(sprintf("%s -- hit return", msg)));
}
But it does not seem to work in non-interactive mode
( I mean, when I start a script like this: R --vanilla < script.R )
It simply continues, I guess the stdin is not connected?
Does somebody
2001 Jun 09
2
r-mode (ESS/XEmacs)
Hello,
please excuse me if this is not the appropriate
mailing list, but I'll give it a try!
I recently switched from using Emacs 20.7.1 to
XEmacs 21.4, both on cygwin / MS W2K.
On Emacs the ESS 5.1.17 was working well, but
now, when calling R from within XEmacs,
it first asks for the working directory,
then says "R process is not running".
The ESS buffer holds the
2010 Nov 22
4
Wait for user input with readline()
Hello,
I am trying write a script that includes a prompt for user input using
readlines() and was told that folks at R-devel might be able to help.
I am running into the problem that when I run readlines() as a single line
the prompt works perfectly, but when I try to run a block of code which
includes the readline function, the script doesn't wait for the user input.
I have seen this
2002 Oct 25
2
re: problem installing library sm
Hi All,
I am having trouble installing the sm package, and only the sm package.
My box is RedHat 7.3 on a PIV. Readline 4.3-3 is installed (suited for
RH 8, but same error under readline 4.2 for RH 7.3), but it seems to be
looking for the readline library in the wrong directory. Will installing
readline 4.1 do the trick? What else could be done?
Rohan Sadler
[root at rsadler R]# R CMD
2002 Jun 15
2
Late Make Problem with Readline (PR#1673)
Full_Name: Jeremy Fox
Version: 1.5.0
OS: Solaris 8, 64 bit
Submission from: (NULL) (171.64.232.63)
I am compiling R under Solaris and the compilation stops at this point. The
problem only happens when I link in readline. The R binary is actually compiled
and readlne works.
The main problem with the compiled binary (other than that all the supporting
files were not
correctly installed) is that
2004 Jun 14
4
Readline on R-1.9.1a
Hello! I'm trying to install R-1.9.1a with readline on Suse Linux. As
recommended in other posts, I've installed readline and readline-devel:
kevin@redtail:~/R-1.9.1> rpm -qa | grep readline
readline-devel-32bit-9.0-0
readline-32bit-9.0-0
readline-4.3-207
readline-devel-4.3-207
Then I run configure with readline:
./configure --with-readline
The relevant lines are: