Skip to content
Prev 8365 / 12125 Next

[R-pkg-devel] Dispatch for S3 and Ordinary Function with Same Name

Hi Dario,
I would have suggested using randomForest::predict.randomForest but you
cannot because it is not exported by randomForest :-(
There is probably a better way but my workaround would be for you to define
your own class to avoid the ambiguity in scope.
Whenever you want to use the predict from randomForest rather than yours, I
would just strip out your specific class name.
Hopefully someone will advise something more elegant to force the scoping...
++



On Mon, 29 Aug 2022 at 17:00, Dario Strbenac <dstr7320 at uni.sydney.edu.au>
wrote:

  
    
Message-ID: <CAERMt4cjR0m4FfwGMjkSCq0i0F0PiZ4scfCOze1j-xp+7BmGqw@mail.gmail.com>
In-Reply-To: <SY2PR01MB300376E48BB4307783EBF4E9CD769@SY2PR01MB3003.ausprd01.prod.outlook.com>