search for: namespaceimportfrom

Displaying 14 results from an estimated 14 matches for "namespaceimportfrom".

2013 Oct 18
1
Possible problem with namespaceImportFrom() and methods for generic primitive functions
Hi all, I have a problem with a package that imports two other packages which both export a method for the `[` primitive function. I set up a reproducible example here: https://github.com/kforner/namespaceImportFrom_problem.git Basically, the testPrimitiveImport package imports testPrimitiveExport1 and testPrimitiveExport2, which both export a S4 class and a `[` method for the class. Then: R CMD INSTALL -l lib testPrimitiveExport1 R CMD INSTALL -l lib testPrimitiveExport2 The command: R CMD INSTALL -l lib te...
2006 Sep 22
1
Possible bug in base::namespaceImportFrom?
Hi, namespaceImportFrom in base/R/namespace.R has the following: fdef <- methods:::getGeneric(genName, impenv) The definition of getGeneric is in methods/R/RMethodUtils.R starts with: getGeneric <- ## return the definition of the function named f as a generic. ## ## If there is no def...
2012 Apr 05
1
issue with base:::namespaceImportMethods
...eric itself 8: found methods to import for function ‘diff’ but not the generic itself 9: found methods to import for function ‘drop’ but not the generic itself ------------------------ I tracked these warnings down to the behavior of the base:::namespaceImportMethods, which ends up calling base:::namespaceImportFrom with arguments that seem to violate the assumptions made in that function. It looks like base:::namespaceImportFrom (conditionally) assumes that the "vars", "generics" and "packages" arguments are parallel vectors. However, base:::namespaceImportMethods can end up filt...
2008 Jun 14
1
How to see data for a package built under Windows
...installing data files preparing package DiagMeta for lazy loading Loading required package: lme4 Loading required package: Matrix Loading required package: lattice Attaching package: 'Matrix' The following object(s) are masked from package:stats : xtabs Warning in namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: cov2cor Warning in namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: update Warning in namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: xtabs installing man source files installing indices n...
2008 Apr 28
0
method dispatch conflict?
...lme4) Loading required package: Matrix Attaching package: 'Matrix' The following object(s) are masked from package:stats : xtabs Attaching package: 'lme4' The following object(s) are masked from package:stats4 : BIC Warning messages: 1: In namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: cov2cor 2: In namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: update 3: In namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: xtabs R> example example R> example(lmer) lmerR> (fm1 <-...
2009 Aug 17
2
S4 Generics and NAMESPACE : justified warning ?
......) NULL) pkgB/NAMESPACE: import(methods) import(garphics) import(pkgA) Loading pkgB would then generate a warning because the generic 'plot' in pkgA overwrites the 'plot' function imported from graphics name space : Loading required package: pkgA Warning message: In namespaceImportFrom(self, asNamespace(ns)) : replacing previous import: plot As far as I understood it, one must explicitly import the functions one needs in pkgB with 'importFrom' to avoid the previous warning. In our example, one would then take care to not import the 'plot' function from garphics...
2005 Apr 05
1
nlme & SASmixed in 2.0.1
...rst problem in Pinheiro & Bates, which uses the data set PBIB from the SASmixed package. I have recently downloaded 2.0.1 and its associated packages. On trying library(SASmixed) data(PBIB) library(nlme) plot(PBIB) I get a warning message Warning message: replacing previous import: coef in: namespaceImportFrom(self, asNamespace(ns)) after library(nlme) and a "pairs" type plot of PBIB. Pressing on I get: > lme1 <- lme(response ~ Treatment, data=PBIB, random =~1| Block) > summary(lme1) Error: No slot of name "rep" for this object of class "lme" Error in deviance...
2023 Apr 09
1
can't install nser...
...a *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace 'magrittr' 2.0.1 is being loaded, but >= 2.0.3 is required Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace Execution halted ERROR: lazy loading failed for package 'nser' * removing 'C:/Program Files/R/R-4.1.2/library/nser' Warning message: In i.p(...) : installation of package ?C:/Users/ADMINI~1/AppData/Local/Temp/2/RtmpktmxP2/remotesbec536a2c/nser...
2023 Apr 09
1
can't install nser...
...oad DB > ** inst > ** byte-compile and prepare package for lazy loading > Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck > = vI[[j]]) : > namespace 'magrittr' 2.0.1 is being loaded, but >= 2.0.3 is required > Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace > Execution halted > ERROR: lazy loading failed for package 'nser' > * removing 'C:/Program Files/R/R-4.1.2/library/nser' > Warning message: > In i.p(...) : > installation of package > ?C:/Users/ADMINI~1/AppData/Local/Temp...
2004 Oct 06
1
R 2.0.0: namespaces, S4 classes & versioned package installation: failure to resolve correct pkg version
...cept and certaily would like to continue doing so. traceback: library("EpiR.algo_1.4.0") Loading required package: EpiR.base Error in as.environment(pkg) : no item called "package:EpiR.base" in the search list In addition: Warning message: replacing previous import: filter in: namespaceImportFrom(self, asNamespace(ns)) Call Stack: 1 : library("EpiR.algo_1.4.0") 2 : try({ 3 : loadNamespace(package, c(which.lib.loc, lib.loc)) 4 : sys.source(codeFile, env, keep.source = keep.source) 5 : eval(i, envir) 6 : eval(expr, envir, enclos) 7 : .defineRankingClass(where = .where) 8 :...
2005 Jul 11
2
Misbehaviour of DSE
Folks, I am finding problems with using "dse": > library(dse1) Loading required package: tframe Error: c("package '%s' required by '%s' could not be found", "setRNG", "dse1") > library(dse2) Loading required package: setRNG Error: package 'setRNG' could not be loaded In addition: Warning message: there is no package called
2007 Dec 03
0
Make error while installing R 2.6.1 on GNU/linux
...b -lR make[5]: Leaving directory `/mnt/Bioinformatics/dbest/R-2.6.1/src/library/stats/src' make[4]: Leaving directory `/mnt/Bioinformatics/dbest/R-2.6.1/src/library/stats/src' Error in namespaceExport(ns, exports) : undefined exports :memory.limit, memory.size Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> namespaceExport Execution halted make[3]: *** [all] Error 1 make[3]: Leaving directory `/mnt/Bioinformatics/dbest/R-2.6.1/src/library/stats' make[2]: *** [R] Error 1 make[2]: Leaving directory `/mnt/Bioinformatics/dbest/R-2.6.1/src/library' make[1...
2013 Sep 12
1
Importing packages in Depend
Hi, I am currently preparing a new version of my package papeR. When I run R CMD check using the development version of R I get the following note: Package in Depends field not imported from: ?nlme?, ?lme4?, ?survival? These packages needs to imported from for the case when this namespace is loaded but not attached. I now have problems to fix this issue. It is easy to get rid of two of the
2013 Aug 30
2
"False" warning on "replacing previous import" when re-exporting identical object
Hi, SETUP: Consider three packages PkgA, PkgB and PkgC. PkgA defines a generic function foo() and exports it; export(foo) PkgB imports PkgA::foo() and re-exports it; importFrom(PkgA, foo) export(foo) PkgC imports everything from PkgA and PkgB: imports(PkgA, PkgB) PROBLEM: Loading or attaching the namespace of PkgC will generate a warning: replacing previous import by