Using un-exported function from another R package?

后端 未结 2 1130
情深已故
情深已故 2020-12-03 10:48

I often use utility type functions from other packages that are un-exported: pkg:::fun(). I am wondering if I can use such a function within new functionality/s

2条回答
  •  醉梦人生
    2020-12-03 11:35

    • Summarising comments from @baptise, and etc...:

    • ::: not allowed on CRAN, so options:

      1. ask author to export it so you can use it in your package via standard imports or suggests.
      2. copy / lift a version of it and clearly cite within your package.

提交回复
热议问题