Displaying 20 results from an estimated 8000 matches similar to: "Pre-building lazyload DB"
2005 Feb 08
0
Pre-building lazyload DB (fwd)
> What is the benefit of lazyload DB in this circumstance? I don't see it
> if your .rda files have one data object each and are compressed.
The paradigm we have been following is to have all the environments
saved in individual .rda files, so after loading the package they can be
accessed with e.g., ls(), get(), mget() automatically without explicitly
having to load() each
2007 Jul 23
2
OT(slightly) - Tracking extended projects
Hi all,
Most of the analyses I do are short little once-and-done type things that are easily encapsulated in a .Rnw file. However, I sometimes end up with projects that take an extended amount of time. Usually these projects are not easily encapsulated in an .Rnw file, so I have been using a single .R file with lots of comments.
The problem with this approach is keeping track of what you have
2007 Nov 14
3
When to use LazyLoad, LazyData and ZipData?
Dear developeRs,
I've searched the documentation, FAQ, and mailing lists, but haven't
found the answer(*) to the following:
When should one specify LazyLoad, LazyData, and ZipData?
And what is the default if they are left unspecified?
(*)Except that
1) If the package you are writing uses the methods package, specify
LazyLoad: yes, and
2) The optional ZipData field controls whether the
2006 Sep 22
1
R CMD build question
On Solaris when my package is built, I get the following result:
creating vignettes ...Segmentation Fault - core dumped
OK
My question isn't why I get a segfault, but why does build return an OK
after such an inauspicious event? Is build only supposed to error out if
something more central to the package is off?
R CMD check does issue a warning that the vignette is missing, so maybe
that
2005 Mar 18
2
package.skeleton
> R.version.string
[1] "R version 2.1.0, 2005-03-17"
I don't see anything in either https://svn.r-project.org/R/trunk/NEWS
or in the Changes file for R-2.1.0 about changes in package.skeleton()
(nor in the help page), but when I run this function, all the .Rd files
produced are of the data format even if all I have in my .GlobalEnv are
functions.
A trivial example is to run the
2007 Jun 12
1
PATCH: install inst/ before doing lazyload on Windows
Hi,
On Windows, package files in the inst/ subdir are installed after the
lazyload creation. This differs from Linux where inst/ is installed
_before_ lazyload creation.
Since packages may need data in inst, I think the order on Windows
should be changed. Perhaps like this:
diff --git a/src/gnuwin32/MakePkg b/src/gnuwin32/MakePkg
index 57af321..868e8f1 100644
--- a/src/gnuwin32/MakePkg
+++
2008 Feb 18
2
Is rcompgen still recommended?
I just built R-devel from source on OS X (Tiger), using the subversion
sources. Running ./tools/rsync-recommended didn't download rcompgen. I
checked
http://cran.r-project/src/contrib/2.7.0/Recommended
and indeed, this package is not there. If I try to install using
install.packages I get
> install.packages("rcompgen", type="source")
--- Please select a CRAN
2004 May 05
1
Segfault from knn.cv in class package (PR#6856)
The function knn.cv in the class package doesn't have error checking to
ensure that the length of the classlabel argument is equal to the number
of rows in the test set. If the classlabel is short, the result is often
a segfault.
> library(class)
> dat <- matrix(rnorm(1000), nrow=10)
> cl <- c(rep(1,5), rep(2,5))
> cl2 <- c(rep(1,5), rep(2,4))
> knn.cv(dat, cl)
[1] 2
2004 Sep 18
1
Rcmd problems and questions, lazyloading
Hola!
I got past the problems I asked about two days ago, thanks. No I am
updating
CRAN package asypow (the daily package check on CRAN gave warnings due to
.Rd problems, fixed).
Now it PASSED Rcmd check
(WindowsXP home edition, rw2000dev, on a new toshiba laptop, if that
matters.)
but then Rcmd build --binary
gives problems:
.
.
.
preparing package asypow for lazy loading
Error in
2006 Mar 31
2
Disable LazyLoading mechanism completely
Is there a global option somewhere that can completely
disable the LazyLoad option? I want all my packages
in source format for searching purposes, crippled by
the conversion to database format.
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Jun 29
2
"all connections are in use" error during lazyload stage of packa ge installation
Hi,
I suddenly started getting strange errors while working on my caTools
package:
>RCMD install C:/programs/R/rw2011/src/library/caTools
......
preparing package caTools for lazy loading
Error in file(file, "r", encoding = encoding) :
all connections are in use
Execution halted
make: *** [lazyload] Error 1
*** Installation of caTools failed ***
I searched
2006 Feb 08
2
Using .onUnload() to unload compiled code
If one wants to unload compiled code for a package containing a namespace, my understanding is that .onUnload() should be used, with a call to library.dynam.unload(). This is used in e.g., the stats and methods packages, but it appears to me that the compiled code is not being unloaded when the package is detached(). Am I misunderstanding something?
Best,
Jim
> search()
[1]
2013 Mar 29
3
weird error with a lazyload .RData file in a package
I added a new data file, NLSY.RData, to a package that uses LazyData: Yes
It passed R CRAN check and R CMD install worked w/o significant complaints.
* installing to library 'C:/R/R-2.15.2/library'
* installing *source* package 'heplots' ...
** R
** data
** moving datasets to lazyload DB
** demo
** inst
** preparing package for lazy loading
Warning: package 'nnet' was
2019 Aug 30
1
New lazyload rdx key type: list(eagerKey=, lazyKeys=)
Prior to R-3.6.0 the keys in the lazyload key files, e.g.
pkg/data/Rdata.rdx or pkg/R/pkg.rdx, seemed to all be 2-long integer
vectors. Now they can be lists. The ones I have seen have two components,
"eagerKey" is a 2-long integer vector and "lazyKeys" is a named list of
2-long integer vectors.
> rdx <- readRDS(system.file(package="survival",
2012 Feb 02
1
pgfSweave doesn't lazyload my objects
Hi all,
I'm struggling a bit to get pgfSweave to lazyload objects when compiling
a .Rnw file for a second time. Caching works fine except that for every
run all objects get cached again and again. I've used cacheSweave which
works fine; all cached objects from code-chunks with option cache = TRUE
are lazy loaded. I've tried it on two machines ... I'm pretty sure I'm
2005 Mar 22
1
Segfault with savePlot
I get a segfault when using savePlot("foo","pdf"). FWIW, I don't have a
problem using the canonical
pdf("foo.pdf")
plot(something)
dev.off()
Best,
Jim
> R.Version()
$platform
[1] "i386-pc-mingw32"
$arch
[1] "i386"
$os
[1] "mingw32"
$system
[1] "i386, mingw32"
$status
[1] "Under development (unstable)"
2003 Oct 07
2
R-1.8.0 memory.limit()
Using R-1.8.0 (d/l and compiled on 2003-10-01) on WinXP, I seem to be
unable to determine the maximum memory allocated to R. The help still
says to use memory.limit(size=NA), but this returns the value NA.
In addition, I have set --max-mem-size=2G but I run out of memory
somewhere around 500Mb (which is why I am trying to find out how much
memory is allocated). I don't have any other programs
2007 Sep 18
1
Best practices - R CMD check and vignettes
Hi,
I have a package that contains two vignettes that both use saved objects
in the examples directory of the package. With previous versions of R I
could have a code chunk in the vignette like this:
<<echo=false>>=
load("../examples/somedata.Rdata")
@
followed by a code chunk like
<<eval=false>>=
foo <- bar("data")
@
that simulated the actual
2006 Mar 31
1
Segfault with too many menu items on Rgui
Hi all,
In the CHANGES file for R-2.3.0alpha, there is the following
statement:
winMenuAdd() now has no limits on the number of menus or items, and
names are now limited to 500 (not 50) bytes.
However, I can reproducibly get a segfault using this (admittedly
silly) example:
for( i in 1:5) winMenuAdd(paste("Test", letters[i], sep=""))
for(i in 1:5) for(j in 1:24)
2004 Jan 20
1
problem with rcmd build R-devel
Hi All,
I am having a problem with Rcmd build using R-devel on WinXP. If I try
to build a package using the --binary flag, I get the following error:
Error: cannot change to directory ' 'c:/TEMP/Rbuild.XXXX' '
Where XXXX is some number. I can get Rcmd build to work using R-1.7.1
and R-1.8.0, so I don't think it is a permission problem. I looked at
the build file, and the