Displaying 20 results from an estimated 8000 matches similar to: "I source an R script. An error is reported. But on what line"
2009 Apr 08
2
sourced plot commands not working
I have source a script running with no errors that ends in these lines:
==============
for (i in 2:3) win.graph()
dev.set(2)
levelplot(avg ~ procs * size, rrt, drape=T, colorkey=T,main="ops/sec",scales=list(x=list(tick.number=15),y=list(log=10)))
dev.set(3)
levelplot(avg ~ procs * size, ort, drape=T, colorkey=T,main="ops/sec",scales=list(x=list(tick.number=15),y=list(log=10)))
2012 Sep 26
1
how to know where you've been sourced from
Hello All,
I need a script to perform different actions depending on the file from
which it was source()'d. Thus, my script needs a way to figure out from
whence it was sourced.
There seems to be some relevant information in sys.calls() (see below).
However, I need to get at the name of the file that directly source the
file in question. That is, just one level above. For example, in the
2008 Mar 07
1
Help with 'memory not mapped'
Hi,
I'm no expert programmer at all;
I'm running an R script ("mariam1_2.R"). This scripts calls another
script, which contains an R function, which .Call some C code.
It runs several times without any problem, but sometimes I get the error:
-------
*** caught segfault ***
address 0x1c404ec8, cause 'memory not mapped'
Traceback:
1: .Call("rrfunc",
2009 Nov 04
2
error in install.packages() (PR#14042)
Full_Name: Michael Spiegel
Version: 2.10
OS: Windows Vista
Submission from: (NULL) (76.104.24.156)
The following error is produced when attempting to call install.packages. Here
is the results of the traceback:
> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
Error in f(res) : invalid subscript type 'list'
> traceback()
7: f(res)
6: available.packages(contriburl =
2008 Aug 07
8
Trying to run simple survival program in R but does not work
Hey,
I am just starting to learn R now and I typed in this simple survival
program:
library(survival)
t <- c(10,13,18,19,23,30,36,38,54,56,59,75,93,97,104,107,107,107)
c <- c(1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0)
data <- Surv(t,c)
km <- survfit(data)
summary(km)
Call: survfit(formula = data)
but everytime I run it I get this error:
Error in
2007 Dec 27
2
Problem of lmer under FreeBSD
I encounter such problem with lmer under FreeBSD, but not under
Windows. Anyone knows why? Thanks.
> example(lmer)
lmer> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
Error in UseMethod("as.logical") : no applicable method for "as.logical"
> traceback()
9: as.logical(EMverbose)
8: as.logical(EMverbose)
7: lmerControl()
6:
2010 Mar 08
1
confused by classes and methods.
Hello, I have a simple class that looks like:
setClass("statisticInfo",
representation( max = "numeric",
min = "numeric",
beg = "numeric",
current = "numeric",
avg = "numeric",
obs = "vector"
2005 Jul 06
4
Tempfile error
Dear List:
I am encountering an error that I can't resolve. I'm looping through
rows of a dataframe to generate individual tex files using Sweave. At
random points along the way, I encounter the following error
Error in file() : cannot find unused tempfile name
At which point Sweave halts. There isn't a logical pattern that I can
identify in terms of why the program stops at
2005 Oct 26
1
Pb encountered with demos
Hi all,
I've just installed R on my Mac & PC.
The base demo run fine.. But I'm encountering several pb with some packages
(installed using CRAN binaries using the menu)
- Lattice:
> demo(lattice,package='lattice')
demo(lattice)
---- ~~~~~~~
Type <Return> to start :
> require(grid)
[1] TRUE
> old.prompt <- grid.prompt(TRUE)
> old.settings
2012 Oct 16
2
gam (mgcv) problem: Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { :, missing value where TRUE/FALSE needed
Hi All,
I'm running into a problem with GAM (in the MGCV package). When I try
to estimate the model, I get the following error message:
1> fit <-
gam(ndvi~s(rain)+s(temp)+s(rainl1)+s(rainl2)+s(rainxY)+s(rainl1xY)+s(rainl2xY)+s(tempxY),
data=dsub, weights=wvec)
Error in while (mean(ldxx/(ldxx + ldss)) > 0.4) { :
missing value where TRUE/FALSE needed
Using
2001 Apr 03
2
Importing from Splus (PR#891)
Full_Name: Ernesto Jardim
Version: 1.2.2
OS: SuSE Linux 6.4
Submission from: (NULL) (193.137.98.92)
I wanted to import an array, dim=c(28,12,17), from splus into R.On splus I did
dump(c("array"),file="dump.out)
I checked and Splus could source it.
Than, in R I tryied to source it with:
source("dump.out")
and got and error message:
> source("dump.out")
2000 Nov 03
2
nls() function is not found (PR#725)
Full_Name: Michael Montero
Version: 1011
OS: NT4.0
Submission from: (NULL) (128.32.148.191)
I haven't been able to use the nls() function because of the following error:
Error in eval.with.vis(expr, envir, enclos) :
couldn't find function "nls"
Apparently nls() is no where to be found, in the /library directory nls exists
with all its files..
need help..
thanks
2009 Jun 11
2
How to force R to print 2 decimal places in column of a data.frame?
How to force R to print 2 decimal places in column of a data.frame? I tried to do so:
x = inp(format(rounf(inp$Tamanho, 2), nsmall = 2),)
where "INP" is data.frame and "Size" is the name of column. But has error:
Error in eval.with.vis(expr, envir, enclos) :
could not find function "inp"
Lesandro
Veja quais s?o os assuntos do momento no Yahoo! +Buscados
2008 Jul 14
1
eval.wih.vis
Hello,
I have an error since I run my R code. This error is :
Fehler in eval.with.vis(expr, envir, enclos) :
>
My code is:
#CONDITION1 : check if the right logfile is chosen
c1=log(z[,3],n)
if (c1==FALSE) {
plot(0:1,0:1,type = "n", axes=FALSE,xlab="",ylab="")
text(0.4,0.8,adj=0,paste("FEHLER"),col="red")
2010 Dec 08
1
Error in eval.with.vis(expr, envir, enclos) : subscript out of bounds
I have a for-loop in my code that calls another .R file:
source("estimation.R")
This file runs through without any problems, so the program completes the loop one time. However, when the loop starts a second time and it comes time to call the file "estimation.R" again, program stops and prints the following error message:
"Error in eval.with.vis(expr, envir, enclos) :
2012 Jun 20
1
Websocket example out of the box failing if running at startup from Rprofile.site
Hello,
I run websockets 1.1.1 from R 2.15 without any problems. I would like
to deploy R script running automatically for all users when R is
starting from Rprofile.site like follow:
.First <- function()
{
source("C:\\R\\orig-websockets.R")
}
This script is from websockets package distribution.
The error is follow:
Error in .parse_header(x) :
2001 May 30
2
environments
I would like to be able, inside a function, to create a new function, and
use it as part of a formula as an argument to, say, gnls or nlme. for
example:
MyTop <- function(data=dta) {
Cexp <- function(dose,A,B,m){...}
Model <- as.formula(paste("y","~ Cexp(",paste(formals(Cexp),collapse
=", "),")"))
MyCall <-
2006 Sep 01
1
core dump with point.in.polygon
I've been trying to get some code to run on a 64-bit FreeBSD machine running
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.0 (2006-04-24)
ISBN 3-900051-07-0
and keep getting a core dump with the following results:
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: .Call("R_point_in_polygon_sp", as.numeric(point.x),
2010 Nov 24
1
segfault interest?
in a long program, I ran into
?*** caught segfault ***
address 0xdc3f9b48, cause 'memory not mapped'
Traceback:
?1: rep.int(seq_len(nx), rep.int(rep.fac, nx))
?2: rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep)
?3: expand.grid(seq_len(nx), seq_len(ny))
?4: merge.data.frame(d, ss)
?5: merge(d, ss)
?6: valid.range(opt)
?7: eval.with.vis(expr, envir, enclos)
?8: eval.with.vis(ei,
2008 Jul 23
2
Can't Load Text Files
Hi,
I've completely forgotten how to do R, and it seems I can't even load
simple files correctly.
I have two tab deliminated text files (attached, these were test files
of the larger data files I'm trying to work with) that I am trying to
load into R so that I can merge them. They were originally excel files
but I used "saved as" to reformat to text. I don't know if