piLaboratory/sads

Some methods fail when "sads" is included in .Rprofile

Closed this issue · 0 comments

Apparently, adding library(sads) to my .Rprofile causes some methods defined in the stats package to fail, as the .Rprofile is interpreted before the default packages are attached.

> profile(fitls(okland))
Error in UseMethod("profile") : 
  no applicable method for 'profile' applied to an object of class "c('fitsad', 'mle2')"
> coef(fitls(okland))
Error: $ operator not defined for this S4 class
> vcov(fitls(okland))
Error in UseMethod("vcov") : 
  no applicable method for 'vcov' applied to an object of class "c('fitsad', 'mle2')"