Displaying 20 results from an estimated 30000 matches similar to: "Warning when sourcing file after require"
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",
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"
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 =
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:
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
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) :
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,
2011 Feb 25
1
Error: address 0x6951c20, cause 'memory not mapped'
Dear R list,
I get a strange error in R:
*** caught segfault ***
address 0x6951c20, cause 'memory not mapped'
Traceback:
1: .C("spline_eval", z$method, nu = as.integer(n), x = as.double(xout), y = double(n), z$n, z$x, z$y, z$b, z$c, z$d, PACKAGE = "stats")
2: spline(gam.data$x[, col.data], gam.smooths.all$fit[, m], xout = gam.results.global[m, ,
2008 Apr 03
1
Lapack error in Design:::ols
Hi,
I'm trying to use Frank Harrell's Design:::ols function to do regression
of y (numeric) on the interaction of two factors (x1 and x2), but Lapack
throws an error:
> library(Design)
...
> load(url("http://www.csse.unimelb.edu.au/~gabraham/x"))
> ols(y ~ x1 * x2, data=x)
Error in chol2inv(fit$qr$qr) : 'size' cannot exceed nrow(x) = 20
> traceback()
2010 Apr 12
1
problems on JGR package and demo() function in Ubuntu linux
Dear R-helpers
I want to express my respect and thankfulness to all of you. I have
ever ask this question about one hour ago. Following Mr. Henrik
Bengtsson's advice I re-submit this query here.
I just switch from windows xp to Ubuntu linux platform. I am facingtwo
problems when I run R in Ubuntu.
I need your helps and advice, thanks in advance.
1. R session info
2011 Feb 18
1
segfault during example(svm)
If do:
> library("e1071")
> example(svm)
I get:
svm> data(iris)
svm> attach(iris)
svm> ## classification mode
svm> # default with factor response:
svm> model <- svm(Species ~ ., data = iris)
svm> # alternatively the traditional interface:
svm> x <- subset(iris, select = -Species)
svm> y <- Species
svm> model <- svm(x, y)
svm>
2003 Mar 10
1
Problem with example(medpolish) in R-devel
Today's R-devel has a problem in `example(medpolish)'. It appears that
the `plot.medpolish' method is not available. Here is the output and
traceback() after starting `R --vanilla':
> library(eda)
> example(medpolish)
mdplsh> deaths <- rbind(c(14, 15, 14), c(7, 4, 7), c(8, 2,
10), c(15, 9, 10), c(0, 2, 0))
mdplsh> dimnames(deaths) <-
2009 Nov 04
1
s4 generic issue
I'm hoping that someone with deeper insight into S4 than I,
that is to say virtually everyone reading this list, could help
resolve the following problem in SparseM. We have
setGeneric("backsolve",
function(r, x, k = NULL, upper.tri = NULL, transpose = NULL,
twice = TRUE, ...)
standardGeneric("backsolve"),
useAsDefault= function(r, x,
2009 Dec 30
1
seg-fault... but on what
I got the following after running succesfully through this loop 28 million
times... the loop opens text files in a directory and inserts line by line
into a database...
*** caught segfault ***
address 0xc0000010, cause 'memory not mapped'
Traceback:
1: .getGeneric(f, where, package)
2: getGeneric("coerce", where = where)
3: as(obj, "integer")
4:
2012 Jul 30
2
mgcv 1.7-19, vis.gam(): "invalid 'z' limits'
Hi everyone,
I ran a binomial GAM consisting of a tensor product of two continuous
variables, a continuous parametric term and crossed random intercepts on a
data set with 13,042 rows. When trying to plot the tensor product with
vis.gam(), I get the following error message:
Error in persp.default(m1, m2, z, col = col, zlim = c(min.z, max.z), xlab =
view[1], :
invalid 'z' limits
In
2009 Mar 23
1
Confusion regarding environments invoked by "source" command
Colleagues,
R version 2.8.1 in OS X
Within a function (which is already within a function), I am sourcing
a file. The syntax of the command is something like (this is just an
example; the actual code is much more complicated):
BIGFUNCTION <- function()
{
DATAFRAME <- [some commands to create a dataframe]
MYFUNCTION(DATAFRAME)
}
MYFUNCTION <- function(DATAFRAME)
{
print(ls())
2009 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
2010 Jun 23
2
possibility to determine whether a script is "sourced"?
Dear R community,
I am running some rather large scripts either by executing single blocks of them separately or by executing them at once via
source('script.R')
Now there is a lot of code in those scripts that I only want to run when I run them manually, so I wonder whether there is any way to automatically find out whether the script is run manually stepwise or whether it is run via