Displaying 20 results from an estimated 10000 matches similar to: "R-1.4.0 delay()"
2002 May 16
0
(PR#1556)
lib.fixup
My previous post mentions a problem encountered when calling ".Internal(
lib.fixup..." in R1.5.0. I have since found a workaround. It's possible in
R1.5.0 to set attributes of search path environments directly, like so:
> env_ pos.to.env( 3)
> attr( env, 'any.attr')_ 'any.value'
> pos.to.env( 3)
<environment: package:tcltk>
2012 Aug 16
1
Compressing data for package builds
Hi,
I have two .rda files that I need to include in a package. I've placed
them both in a data directory
after save() the are around 150Kb each.
When I try to check the package I get the following warning
Warning: large data file(s) saved inefficiently:
size ASCII compress
zagoskin.rda 137Kb FALSE none
Note: significantly better compression could be obtained
2009 Sep 14
1
loading a package .Rda file at package load time
Hi, I have seen the answer to this sometime before but I just can't find it
again - pointers appreciated.
I have a package that contains some data.frames saved as .Rda files in the
data/ directory. When the package is loaded I would like to have them be
available in the workspace (without the user having to explicitly load them
using data(...)).
If my package does not use a NAMESPACE, I can
2005 Feb 01
1
Error in load(dataFile, myEnv)
Dear all,
I just found that some of the packages are not able to load any more,
after I installed R2.0.1 in my Mac, it even affects my old R1.8
installs.
It gives me errors when I load packages that contains "myEnv" settings.
such as: RMySQL, DBI, Rggobi, etc. But others that does not require
"myENV" is all right, like tcltk that only calls the c functions.
The errors
2007 Sep 25
1
'load' does not properly add 'show' methods for classes extending 'list'
The GeneSetCollection class in the Bioconductor package GSEABase
extends 'list'
> library(GSEABase)
> showClass("GeneSetCollection")
Slots:
Name: .Data
Class: list
Extends:
Class "list", from data part
Class "vector", by class "list", distance 2
Class "AssayData", by class "list", distance 2
If I create
2000 Jun 30
1
"problem" with delay()
I have been using delay() quite successfully to 'load on reference'
some large data files (earthquake catalogues). One minor difficulty I
have not been able to overcome is that upon first reference, the data
set is loaded into memory as expected, but also remains as a permanent
object in the user's environment, instead of appearing to be only in
the library from which it was loaded.
2008 Aug 22
1
save() should not overwrite a file if an error occurs (PR#12583)
If save() fails because an object is not found,
it should not overwrite an existing file.
> a <- 1:9
> save(a, file = "a.rda")
> rm(a)
> load("a.rda")
> a
[1] 1 2 3 4 5 6 7 8 9
> rm(a)
> save(a, file = "a.rda")
Error in save(a, file = "a.rda") : object 'a' not found
> load("a.rda")
Error in
2002 Jan 23
1
R on Tru64 5.1
Hi,
R-1.4.0 on ES40 under OSF 5.1.
I use gcc version 3.0.3
During gnu make I have the message :
dumping R code in package `methods'
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared
library"/usr/local/R1.4.0/library/methods/libs/methods.so":
dlopen: /usr/local/R-1.4.0/library/ctest/libs/ctest.so: symbol "dansari"
unresolved
Execution
2007 Oct 10
2
slow load() in R2.6.0
I'm encountering excruciatingly slow load times for character vectors in
R 2.6.0-- up to 30sec for a 15K file that contains a no-attributes
character vector of length ~1e4 and object size ~0.5MB. In R 2.5.1,
repeated loads of the same set of files are near-instantaneous.
The problem is proving tricky to reproduce consistently from scratch, so
I have attached the 3 files used in the examples
2011 Jan 26
1
Problem with "setMethod" in R package
Dear all,
My apologies for re-posting this question, but I have not found any
solution to my problem so far. I also think that my post may have been
overseen due to the posting time and high traffic on this list.
I experience a problem in implementing a S4 class in a package and would
appreciate your help in this matter.
The class is implemented using Rcpp, which works well. I then extend
2003 May 22
3
How to avoid function masking
Hi All,
I've been working on updating the 'genetics' package. As a consequence of
the upgrade, .First.lib() looks like:
.First.lib <- function(libname, pkgname)
{
if (!require(combinat))
warning("Unable to load 'combinat' library. Function
`diseq.ci' will fail.")
require(gregmisc)
genotype <-
2002 Nov 18
2
library() help for Windows
Dear R users,
I have just upgraded R v1.5.0 to v1.6.1 for Windows but have trouble loading my library of R only functions (no C calls). After examining the "library" script this difference was found:
(v1.5.0)
which.lib.loc <- dirname(pkgpath)
descfile <- system.file("DESCRIPTION", package = package,
lib.loc = which.lib.loc)
if
2001 Feb 06
3
RWin 1.2.1: Can't access sample datasets, e.g. MASS
I'm pretty sure I'll feel like [more of] an idiot but...
Using Rgui working in a fresh, blank directory.
> require(MASS)
Loading required package: MASS
[1] TRUE
> data(cabbages)
Warning message:
======> Data set `cabbages' not found in: data(cabbages) <=====
> ls()
[1] "last.warning"
> search()
[1] ".GlobalEnv" "package:MASS"
2012 Nov 08
3
problem with package development and older defs earlier in search order
Hi,
I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv? fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want to mess up the search order to fix the problem.
How I got myself into this mess is that I started
2016 Nov 15
2
Missing objects using dump.frames for post-mortem debugging of crashed batch jobs. Bug or gap in documentation?
Martin, thanks for the good news and sorry for wasting your (and others
time) by not doing my homework and query bugzilla first (lesson learned!
).
I have tested the new implementation from R-devel and observe a semantic
difference when playing with the parameters:
# Test script 1
g <- "global"
f <- function(p) {
l <- "local"
dump.frames()
}
2013 Apr 18
2
how to control the environment of a formula
Dear List
I have experienced that objects generated with one of my packages used
a lot of space when saved on disc (object.size did not show this!).
some debugging revealed that formula and call objects carried the full
environment of subroutines along, including even stuff not needed by the
formula or call. here is a sketch of the problem
,----
| test <- function(x){
| x <-
2010 Oct 05
2
[LLVMdev] gold-plugin build errors
I tried to build the gold plugin and receive the errors posted below. I
checked out the gold plugin using "cvs -z 9 -d
:pserver:anoncvs at sourceware.org:/cvs/src co src," as documented on
llvm.org. Is that version bleeding edge and perhaps not stable?
The first errors have to do with the libtool version. I have libtool
2.2.6 on my system, which is what the README-maintainer-mode
2016 Nov 13
2
Missing objects using dump.frames for post-mortem debugging of crashed batch jobs. Bug or gap in documentation?
Dear R friends,
to allow post-mortem debugging In my Rscript based batch jobs I use
tryCatch( <R expression>,
error = function(e)
{
dump.frames(to.file = TRUE)
})
to write the called frames into a dump file.
This is similar to the method recommended in the "Writing R extensions"
manual in section 4.2 Debugging R code (page 96):
2005 Jun 10
1
Exiting R and package detachment?
Hi,
is there away to assure that a package is detached when R quits? I know
about .Last(), but that requires the user to setup that function. What
I am looking for is a way for the package to do this itself, without
asking the user to edit "their" .Last(). From ?setHook I know that:
"...when an R is finished, packages are not detached and namespaces
are not unloaded, so
2015 Sep 14
2
adding xen support to grub2 got segfault running grub2-mkimage
There is some interest lately in making a self-contained grub2 boot image - call it pvgrub2, used for booting paravirtual domU in xen where a grub2 config is installed.
First attempt------------------
I first tried using the grub2*.src.rpm from the C7 vault.
I configured as shown belowhttps://blog.xenproject.org/2015/01/07/using-grub-2-as-a-bootloader-for-xen-pv-guests/
for headers, I used