Displaying 3 results from an estimated 3 matches for "isloadedn".
2015 Jan 26
2
speedbump in library
...t;)
[1] TRUE
> isNamespaceLoaded(asNamespace("stats"))
Error in as.vector(x, "symbol") :
cannot coerce type 'environment' to vector of type 'symbol'
>
So, from my (non native English view) a slightly more suggestive
function name may be
isLoadedNamespace(name)
or using Luke's original language, still present in the C code,
isRegisteredNamespace(name)
but I would prefer the former, isLoadedN..S..()
Martin
> On Mon, Jan 26, 2015 at 3:36 AM, Martin Maechler
> <maechler at lynne.stat.math.ethz.ch> wrote:
>...
2015 Jan 26
0
speedbump in library
isLoadedNamespace() sounds fine to me..
Thanks for addressing this,
Michael
On Mon, Jan 26, 2015 at 5:51 AM, Martin Maechler <
maechler at lynne.stat.math.ethz.ch> wrote:
> >>>>> Michael Lawrence <lawrence.michael at gene.com>
> >>>>> on Mon, 26 Jan 2015...
2015 Jan 26
2
speedbump in library
>>>>> Winston Chang <winstonchang1 at gmail.com>
>>>>> on Fri, 23 Jan 2015 10:15:53 -0600 writes:
> I think you can simplify a little by replacing this:
> pkg %in% loadedNamespaces()
> with this:
> .getNamespace(pkg)
almost: It would be
!is.null(.getNamespace(pkg))
> Whereas getNamespace(pkg) will load the