Displaying 7 results from an estimated 7 matches for "getexportedvalue".
2006 Oct 06
1
operator :: and symbols not in the namespace of a package with a namespace (PR#9279)
...# error not in
namespace
This is as documented, but I think it would be convenient, if boot::motor would
also return the object in this case.
This might be achieved by adding an additional tryCatch in "::": If the package
has a namespace, try getExportedValue (), if that fails, try to get from package
environment instead. E.g.:
"::" <- function (pkg, name)
{
pkg <- as.character(substitute(pkg))
name <- as.character(substitute(name))
ns <- tryCatch(asNamespace(pkg), hasNoNamespaceError = function(e) NULL)
if (is.nul...
2018 Jul 05
2
Segfault on ubuntu 18.04
...: loadNamespace(name)
4: doTryCatch(return(expr), name, parentenv, handler)
5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
6: tryCatchList(expr, classes, parentenv, handlers)
7: tryCatch(loadNamespace(name), error = function(e) stop(e))
8: getNamespace(ns)
9: asNamespace(ns)
10: getExportedValue(pkg, name)
11: curl::new_handle
12: handle(name)
13: handle_find(url)
14: handle_url(handle, url, ...)
15: httr::GET(url, path = path, httr::write_disk(path = tmp), auth)
16: remote_package_name.github_remote(remote)
17: remote_package_name(remote)
18: install_remote(..., quiet = quiet)
19: doTryCa...
2016 May 10
1
recursion problem using do.call(rbind, list(..,<S4>,..))
...## fine with 400 :
mL.4c <- replicate(400, m45, simplify=FALSE)
mmm4 <- do.call(rbind, mL.4c)
stopifnot(is(mmm4, "mmatrix"), dim(mmm4) == c(1600L, 5L))
## not ok with 410 :
mL.410 <- replicate(410, m45, simplify=FALSE)
mmm4 <- do.call(rbind, mL.410)
## Error in getExportedValue(pkg, name) (from #2) : node stack overflow
and the "node stack overflow" is not too helpful.
Unfortunately, this is more than one problem, the first one being
that recursive function calls nowadays often end with this
"node stack overflow" error, rather than the somewhat more...
2018 Jul 05
0
Segfault on ubuntu 18.04
...arentenv, handler)
>> 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
>> 6: tryCatchList(expr, classes, parentenv, handlers)
>> 7: tryCatch(loadNamespace(name), error = function(e) stop(e))
>> 8: getNamespace(ns)
>> 9: asNamespace(ns)
>> 10: getExportedValue(pkg, name)
>> 11: curl::new_handle
>> 12: handle(name)
>> 13: handle_find(url)
>> 14: handle_url(handle, url, ...)
>> 15: httr::GET(url, path = path, httr::write_disk(path = tmp), auth)
>> 16: remote_package_name.github_remote(remote)
>> 17: remote_package_...
2018 Jul 06
0
Segfault on ubuntu 18.04
...: doTryCatch(return(expr), name, parentenv, handler)
> 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> 6: tryCatchList(expr, classes, parentenv, handlers)
> 7: tryCatch(loadNamespace(name), error = function(e) stop(e))
> 8: getNamespace(ns)
> 9: asNamespace(ns)
> 10: getExportedValue(pkg, name)
> 11: curl::new_handle
> 12: handle(name)
> 13: handle_find(url)
> 14: handle_url(handle, url, ...)
> 15: httr::GET(url, path = path, httr::write_disk(path = tmp), auth)
> 16: remote_package_name.github_remote(remote)
> 17: remote_package_name(remote)
> 18: instal...
2003 Oct 15
2
help.search in trouble with R-patched ?
...bjectsWithPackage", value, package = pkg)
9: metaNameUndo(unique(these), prefix = "M", searchForm = searchForm)
8: methods:::getGenerics(ns)
7: unique(c(methods:::getGenerics(ns), methods:::getGenerics(parent.env(ns))))
6: loadNamespace(name)
5: getNamespace(ns)
4: asNamespace(ns)
3: getExportedValue(pkg, name)
2: tools::fileTest
1: help.search("prompt", agrep = F)
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status Patched
major 1
minor 8.0
year 2003
month 10
day 14
language R
>
2015 Feb 24
3
alternatives to do.call() when namespace is attached but not loaded?
Dear R-devel
I have a function in a package that essentially provides a wrapper for a
group of functions in another Suggested package (it sets appropriate
defaults for the context, transforms output, etc). I've implemented
this by verifying that the package was loaded with
require(sna)
and then
do.call(snaFunName, args = args)
The rDevel check is requesting that I use