How directly access S3 method in roxygen2 R package

前端 未结 1 1083
鱼传尺愫
鱼传尺愫 2021-01-21 20:08

I\'m writing my first package with roxygen2. The package implements a faster version of pcdtest() from plm package. Thus I call wi

相关标签:
1条回答
  • 2021-01-21 20:19

    Late, but... Packages don't need to be attached for their registered S3 methods to be available, they just need to be loaded. Therefore, you don't need necessarily to import(plm) (which loads and attaches the package), but just to importFrom(plm, somefunction) (which loads the package, but attaches just this function), any function or symbol declared as export(somefunction) in plm's NAMESPACE.

    0 讨论(0)
提交回复
热议问题