similar to: Where does R search when source() ?

Displaying 20 results from an estimated 5000 matches similar to: "Where does R search when source() ?"

2004 Apr 20
1
Can't find memory.size()
I try memory.size function to find out available memory size, but surprisingly R complains it can't find the function. ?memory.size also failed. Is it not in the base library? If so, why can't my R find it? I am using the binary 1.9.0 version for Mandrake 9.1. Thanks in advance. Daehyok Shin Terrestrial Hydrological Ecosystem Modellers Geography Department University of North
2004 Apr 05
1
Deep copy in R
I am handling spatial data of huge volumes, so sensitive to the silent duplication of data in script programs. In the following R program, exactly when is the vector data deeply copied? Thanks in advance. 1 v <- 1:10000 2 z <- f(v) --------- function f ---------- 3 f <- function(x) { 4 y = x 5 y[10] = 1 6 xf = date.frame(x=x) 7 xf$x[10] = 1 8
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in current environment, rather than listing all objects? Thanks. -- Daehyok Shin (Peter) Geography Department Univ. of North Carolina-Chapel Hill
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in current environment, rather than listing all objects? Thanks. -- Daehyok Shin (Peter) Geography Department Univ. of North Carolina-Chapel Hill
2004 Apr 07
3
More user-friendly error message needed.
When I tried the following commands, I got a strange message. > x<-data.frame(y=c(1:10)) > plot(x$z) Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ "The data frame, x, does not have a field named z." may be better user-friendly message for this kind of common error. Daehyok Shin
2004 Apr 07
3
More user-friendly error message needed.
When I tried the following commands, I got a strange message. > x<-data.frame(y=c(1:10)) > plot(x$z) Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ "The data frame, x, does not have a field named z." may be better user-friendly message for this kind of common error. Daehyok Shin
2004 Apr 12
4
Only referenc copy when calling C routine?
What happens when I pass an array to a dynamically linked C routine? Is only its reference copied when an array is passed and returned? Or, is its whole content copied? In R extension manual, I found the following description. But, I can't know exactly which is true. "There can be up to 65 further arguments giving R objects to be passed to compiled code. Normally these are copied before
2004 Apr 20
1
Re: [R] Error message during debug (PR#6804)
On Tue, 20 Apr 2004 13:48:43 -0400 (EDT), "Gabor Grothendieck" <ggrothendieck@myway.com> wrote : > >In R 1.9.0 on Windows XP Pro I get an error if I try to >debug the identity function f shown: > > > f <- function(x)x > > debug(f) > > f(1) > debugging in: f(1) > Error in f(1) : Unimplemented feature in eval > > R.version.string > [1]
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")? Only from current working directory (same as getwd()), from all directories specified by e.g. $PATH? Thanks. Daehyok Shin
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")? Only from current working directory (same as getwd()), from all directories specified by e.g. $PATH? Thanks. Daehyok Shin
2004 Jun 07
7
Vectors of years, months, and days to dates?
The interface for dates in R is a little confusing to me. I want to create a vector of Date objects from vectors of years, months, and days. One solution I found is: years <- c(1991, 1992) months <- c(1, 10) days <- c(1, 2) dates <- as.Date(ISOdate(years, months, days)) But, in this solution the ISOdate function converts the vectors into characters, which can cause serious
2003 Nov 05
1
save(iris,file=
I tried it using file and it seems to work for saving: > data(iris) > con <- file("clipboard","w") > save(iris,ascii=T,file=con) > close(con) > readLines("clipboard") ... lengthy output follows which seems correct ... but not for loading: > con <- file("clipboard","r") > load(con) Error in load(con) : loading from
2003 Dec 25
1
problem with pipes (PR#5053)
I gather that the pipe problem is a difficult one to solve since its highly desirable (at least for me) to be able to use Windows pipes yet its been outstanding since the previous R release. I have one idea on a possible workaround and associated feature and I wonder if this feature is feasible? I just noticed that z <- system("c:\\a.bat", intern = TRUE, invisible = TRUE) is
2004 Jul 12
2
lme unequal random-effects variances varIdent pdMat Pinheiro Bates nlme
How does one implement a likelihood-ratio test, to test whether the variances of the random effects differ between two groups of subjects? Suppose your data consist of repeated measures on subjects belonging to two groups, say boys and girls, and you are fitting a linear mixed-effects model for the response as a function of time. The within-subject errors (residuals) have the same variance in
2004 Apr 06
2
A package to read and write NetCDF?
I am looking for a package to read and write NetCDF files. NetCDF package says it can only read, not write. Another package for the standard binary file format? Daehyok Shin
2004 Apr 07
1
Re: [R] More user-friendly error message needed.
Perhaps one could create a utility function has.element <- function(list, name) name %in% names(list) and then have $ generate a warning (not an error!) when the named element does not exist. This would be helpful in debugging code. Yesterday I spent quite some time tracking down an error that turned out to be $ returning a NULL because the data file I read in had a variable mis-named.
2005 Jan 12
0
changing langage [SOLVED]
To all that replied, thanks... I have a clue where I can change the settings. tnx, Kurt Sys >----- Oorspronkelijk bericht ----- >Van : Gabor Grothendieck [mailto:ggrothendieck at myway.com] >Verzonden : woensdag , januari 12, 2005 05:26 PM >Aan : r-help at stat.math.ethz.ch >Onderwerp : Re: [R] changing langage > >Kurt Sys <kurt.sys <at> pandora.be> writes:
2004 Jun 24
2
Packages of snippets? (was: A way to list only variables or functions?)
From: Duncan Murdoch <dmurdoch@pair.com> >I do understand the feeling of >writing a nice little function, and not knowing exactly what to do >with it: CRAN is crowded, and it does seem that an entire package >just to support one or two simple functions is a bit of overkill. >Can we work out a way to publish such things? Here's a >proposal, with some serious flaws
2003 Nov 26
0
Question about Unix file paths (and proposal for new regexp class)
> Date: Wed, 26 Nov 2003 13:52:44 +0100 > From: Martin Maechler <maechler@stat.math.ethz.ch> > To: <Kurt.Hornik@wu-wien.ac.at> > Cc: <r-devel@stat.math.ethz.ch> > Subject: Re: [Rd] Question about Unix file paths > > > > >>>>> " Kurt" == Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> > >>>>> on Wed, 26
2004 Jul 22
2
Files and classes in a package?
While installing my small package, I met a tricky problem. For clarity, let me explain it with the following simplified example. In ~/pkg/R/aclass.R, setClass("aclass", contains="bclass", representation(i="numeric")) In ~/pkg/R/bclass.R, setClass("bclass", representation(j="numeric")) After building a "pkg" package, the file