Re: [Rd] Suggestion: isLoaded() to test if a package is loaded (without loading it)

2008-02-21 Thread Seth Falcon
"Henrik Bengtsson" <[EMAIL PROTECTED]> writes: > Hi, > > for 'affxparser' (Bioconductor), we needed a function to test if a > certain package was loaded or not, but we did not want to load it if > it wasn't, which is why we couldn't use require(). We came up with > the following solution: > > is

[Rd] Suggestion: isLoaded() to test if a package is loaded (without loading it)

2008-02-21 Thread Henrik Bengtsson
Hi, for 'affxparser' (Bioconductor), we needed a function to test if a certain package was loaded or not, but we did not want to load it if it wasn't, which is why we couldn't use require(). We came up with the following solution: isPackageLoaded <- function(package, version=NULL, ...) { s