Displaying 8 results from an estimated 8 matches for "__namespace__".
2023 Jul 19
0
proposal for WRE: clarify that use of S4 classes implies use of superclasses
...ackage")
> names(ns)
[1] ".__C__generalMatrix" ".__C__Matrix" ".__C__sparseMatrix"
[4] ".__C__compMatrix" ".__C__whatever" "zzz"
[7] ".packageName" ".__C__dsparseMatrix" ".__NAMESPACE__."
[10] ".__C__dMatrix" ".__S3MethodsTable__."
> sort(names(ns))
[1] ".__C__Matrix" ".__C__compMatrix" ".__C__dMatrix"
[4] ".__C__dsparseMatrix" ".__C__generalMatrix" ".__C__sparseMatrix"...
2014 Nov 15
1
Code tools for identifying which package A functions package B use?
Hi,
I'd like to list all package PkgA functions that another package PkgB
use via Depends or Imports (ignoring Suggests for simplicity). As
long as PkgB uses importFrom("PkgA", ...) it's just a matter of
parsing the NAMESPACE file or inspecting
asNamespace("PkgB")$.__NAMESPACE__.$imports. However, what can be
done in case PkgB uses import("PkgA")? Is there a function/package
already available for this?
Thanks,
Henrik
2024 Mar 06
1
Never exporting .__global__ and .__suppressForeign__?
...:
Index: src/library/base/R/namespace.R
===================================================================
--- src/library/base/R/namespace.R (revision 86054)
+++ src/library/base/R/namespace.R (working copy)
@@ -806,7 +806,8 @@
if (length(exports)) {
stoplist <- c(".__NAMESPACE__.", ".__S3MethodsTable__.",
".packageName", ".First.lib", ".onLoad",
- ".onAttach", ".conflicts.OK", ".noGenerics")
+ ".onAttach", "....
2019 Feb 18
2
Error in rbind(info, getNamespaceInfo(env, "S3methods"))
Dear all,
I'm experiencing an unusual installation error for one package. Could
anyone suggest how I can best investigate this from here please? I'm sorry
this isn't very much to go on. Hopefully someone can point me in the right
direction.
The problem seems to be my library. It is large (3,418 packages) and I'd
like to avoid rebuilding it, if possible. All packages are up to
2019 Feb 18
0
Error in rbind(info, getNamespaceInfo(env, "S3methods"))
...allation error for one package. Could
> anyone suggest how I can best investigate this from here please? I'm sorry
> this isn't very much to go on. Hopefully someone can point me in the right
> direction.
When packages are installed, a hidden environment is created called
".__NAMESPACE__.". It contains a number of objects; it looks as though
one of yours called "S3methods" is corrupted. I can't guess whether it
is one coming from staRdom or one already in your library, but it
appears yours doesn't have the usual number of columns (which I think is 3).
S...
2004 Dec 16
1
Problem with postscript graphics device driver
I recently installed R version 2.01 for OS X (version 10.3.6). I now
get the following error message when I try to use the postscript
function:
Error in get(name.opt, envir = envir) : Object ".PSenv" not found
This did not happen in previous versions of R (i.e. 1.9). I do not get
this error message when using the pdf graphics device driver.
Thanks,
Jeff Freedman
2012 Mar 09
0
.conflicts.OK no longer working regardless of export(.conflicts.OK) due to "stoplist"
...and clear on.exit action
exports <- nsInfo$exports
for (p in nsInfo$exportPatterns)
exports <- c(ls(env, pattern = p, all.names = TRUE), exports)
## certain things should never be exported.
if (length(exports)) {
stoplist <- c(".__NAMESPACE__.", ".__S3MethodsTable__.",
".packageName", ".First.lib", ".onLoad",
".onAttach", ".conflicts.OK", ".noGenerics")
exports <- exports[! exports %in% stoplist]...
2009 Jan 13
2
particulars of importing/loading libraries
Dear List:
Sorry for posting maybe a trivial question, but I have a basic
understanding problem. If I have say pack1 and pack2, two R packages,
and pack2 depends on and imports pack1 fully (as in the code below), is
there a way to make all the functionality of pack1 available for the
global and other environments (not only for the functions called from
withing pack2) by loading pack2 only? I