[Rd] Namespace and function open

Martin Maechler maechler at stat.math.ethz.ch
Mon Feb 18 18:22:45 CET 2008

>>>>> "MS" == Markus Schmidberger <schmidb at ibe.med.uni-muenchen.de>
>>>>>     on Fri, 15 Feb 2008 15:47:16 +0100 writes:

    MS> Hello, I built a package, everything was working very
    MS> well. Now I included a NAMESPACE to export only some
    MS> variables. (export(f, g, ...) ) Everything is working
    MS> fine, except one function. There I get an error:

    MS> Fehler in UseMethod("open") : keine anwendbare Methode
    MS> für "open"

    MS> In this function I use the function "open" to generate
    MS> an output bar.

    MS> * if (verbose) { pbt <- new("ProgressBarText",
    MS> length(ids), barsteps = as.integer(20)) open(pbt) }
    MS>     for (i in seq(along=ids)) {
    MS>       if (verbose) { update(pbt) }

    MS> How I have to change my NAMESPACE file to fix this
    MS> problem?

You also have to export the *methods* for the open() generic:


    MS> Thanks Markus Schmidberger

you're welcome,
Martin Mächler

More information about the R-devel mailing list