search for: classenv

Displaying 13 results from an estimated 13 matches for "classenv".

2012 May 09
1
Paquete Spatstat
...12.04 los cuales ya lo actualice. El paquete (spatstat) esta instalado pero puntualmente es problema es asi: / > library("spatstat") Loading required package: mgcv Error : .onLoad failed in loadNamespace() for ''Matrix'', details: call: assignInNamespace(".M.classEnv", .M.classEnv, ns = "base") error: locked binding of ''.M.classEnv'' cannot be changed Error: package ''mgcv'' could not be loaded/ Ya cargué el paquete "mgcv" y tambien un paquete "deldir" que lei por ahi que tambien se neces...
2012 Aug 15
1
Build from Source fails on Loading required package Matrix
...olset, MixTeX, and InnoSetup per http://cran.r-project.org/bin/windows/Rtools/. I obtained the source for 2.15.1 via svn from https://svn.r-project.org/R/branches/R-2-15-branch/. This is my first try building R from source. The build seems to go far, then terminates with "undefined exports: .M.classEnv" from the Matrix package, I believe. Here are the last few lines of the build session Creating a generic function for 'qr.resid' from package 'base' in package 'Matrix' Creating a generic function for 'qr.fitted' from package 'base' in package 'Matr...
2008 May 21
3
Converting a 'difftime' to integer - How to???
...as.Date("2006-03-13") - as.Date("2006-01-01") +1 > d Time difference of 72 days So far so good. But d is a 'difftime' object. How do I get an Integer value from that? I tried severel things, incuding the following: > dd <- as(d,"numeric") Error in .classEnv(thisClass) : unable to find an environment containing class "difftime" Sugestions appriciated... :-) Martin at Hvidberg.net
2013 Feb 15
2
Matrix does not build with R trunk since Oct.
...1.0-9 (sept 2012) build with current R trunk. The last time it did was 1. 0-9 on 3rd october over 4 months ago. So it appears to be due to change inside r trunk in sept or early oct. ---------------- Loading required package: Matrix Error in namespaceExport(ns, exports) : undefined exports: .M.classEnv Error : require(Matrix) is not TRUE ERROR: installing package indices failed * removing ?/svn-loc/R/library/Matrix? * restoring previous ?/svn-loc/R/library/Matrix? make[2]: *** [Matrix.ts] Error 1 make[2]: Leaving directory `/svn-loc/R/src/library/Recommended' make[1]: *** [recommended-package...
2015 Jan 21
2
reducing redundant work in methods package
...f functions you wish to refactor .init_test_data_collection <- function(ns = asNamespace("methods")) { funs = c("isClassUnion", "getClass", "genericForPrimitive", "possibleExtends", ".dataSlot", ".requirePackage", ".classEnv", "getClassDef", "outerLabels", ".getClassFromCache", "getFunction") message(paste0("\nCollecting data for unit tests on ", paste(funs, collapse=", "), " ...\n")) # Make env with list to hold test input/output...
2015 Jan 21
2
reducing redundant work in methods package
...gt;> .init_test_data_collection <- function(ns = asNamespace("methods")) { >> >> funs = c("isClassUnion", "getClass", "genericForPrimitive", >> "possibleExtends", ".dataSlot", ".requirePackage", ".classEnv", >> "getClassDef", "outerLabels", ".getClassFromCache", "getFunction") >> >> message(paste0("\nCollecting data for unit tests on ", paste(funs, >> collapse=", "), " ...\n")) >> >>...
2004 May 17
1
Problem with package SJava
...17 09:22:41 2004 Elapsed Time = 17 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode) # I try to recompile the native interfaces and I think that some files or directories are missing like: antlr\commonAST.class jas.classEnv I don't know what I should do so I hope that anybody could help me. thanks, Regards Vincent
2015 Jan 21
0
reducing redundant work in methods package
...refactor > > .init_test_data_collection <- function(ns = asNamespace("methods")) { > > funs = c("isClassUnion", "getClass", "genericForPrimitive", > "possibleExtends", ".dataSlot", ".requirePackage", ".classEnv", > "getClassDef", "outerLabels", ".getClassFromCache", "getFunction") > > message(paste0("\nCollecting data for unit tests on ", paste(funs, > collapse=", "), " ...\n")) > > # Make env with list to...
2020 Oct 26
0
Change to I() in R 4.1
...nge the class of an S4 object to something invalid. I really don't think people should be allowed to use I() to change a valid S4 object into an invalid one, but this is what happens (R 4.0.3 patched) : > require(Matrix); M <- Matrix(0, 2,3); IM <- I(M) > validObject(IM) Error in .classEnv(classDef) : trying to get slot "package" from an object of a basic class ("NULL") with no slots > IM ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- methods --- cal...
2020 Oct 23
2
Change to I() in R 4.1
Hi there, Is that change in R-devel intentional? library(Matrix) m <- as(matrix(c(0, 1)), "sparseMatrix") isS4(m) # [1] TRUE x <- I(m) # Warning message: # In `class<-`(x, unique.default(c("AsIs", oldClass(x)))) : # Setting class(x) to multiple strings ("AsIs", "dgCMatrix", ...); result will no longer be an S4 object
2015 Jan 22
0
reducing redundant work in methods package
...t_test_data_collection <- function(ns = asNamespace("methods")) { >>> >>> funs = c("isClassUnion", "getClass", "genericForPrimitive", >>> "possibleExtends", ".dataSlot", ".requirePackage", ".classEnv", >>> "getClassDef", "outerLabels", ".getClassFromCache", "getFunction") >>> >>> message(paste0("\nCollecting data for unit tests on ", paste(funs, >>> collapse=", "), " ...\n")) >&...
2015 May 28
3
S4 inheritance and old class
Hey everyone, I would like to develop a package using S4 classes. I have to define several S4 classes that inherits from each others as follow: # A <- B <- C <- D I also would like to define .DollarNames methods for these class so, if I have understood well, I also have to define an old class as follow: # AOld <- A <- B <- C <- D setOldClass(Classes = "AOld")
2020 Oct 30
2
Change to I() in R 4.1
...hing invalid. > > I really don't think people should be allowed to use I() to > change a valid S4 object into an invalid one, but this is what > happens (R 4.0.3 patched) : > >> require(Matrix); M <- Matrix(0, 2,3); IM <- I(M) >> validObject(IM) > Error in .classEnv(classDef) : > trying to get slot "package" from an object of a basic class ("NULL") with no slots >> IM > ----------- FAILURE REPORT -------------- > --- failure: length > 1 in coercion to logical --- > --- srcref --- > : > --- package (from...