[Bioc-devel] Namespace and function 'open'

Markus Schmidberger schmidb at ibe.med.uni-muenchen.de
Fri Feb 15 16:10:49 CET 2008


The function "open" is located in the "base" package. This should be 
imported automatically.

importFrom(base, open)
Fails with an error:

Error in asNamespace(ns, base.OK = FALSE) :
  operation not allowed on base name space

Best,
Markus

Sean Davis schrieb:
> On Fri, Feb 15, 2008 at 9:53 AM, Markus Schmidberger
> <schmidb at ibe.med.uni-muenchen.de> wrote:
>   
>> Hello,
>>
>>  I built a package, everything was working very well. Now I included a
>>  NAMESPACE to export only some variables. (export(f, g, ...) )
>>  Everything is working fine, except one function. There I get an error:
>>
>>  Fehler in UseMethod("open") : keine anwendbare Methode für "open"
>>
>>  In this function I use the function "open" to generate an output bar.
>>
>>   if (verbose) {
>>      pbt <- new("ProgressBarText", length(ids), barsteps = as.integer(20))
>>      open(pbt)
>>    }
>>      for (i in seq(along=ids)) {
>>        if (verbose) {
>>        update(pbt)
>>      }
>>
>>  How I have to change my NAMESPACE file to fix this problem?
>>     
>
> Hi, Markus.  You will probably need to specify an import, perhaps from
> the affy package?
>
> http://cran.r-project.org/doc/manuals/R-exts.html#Package-name-spaces
>
> Hope that helps,
> Sean
>



More information about the Bioc-devel mailing list