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/scope in my own R package. What is the correct approach here? Is including the package in my description file enough?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
Summarising comments from @baptise, and etc...:
:::
not allowed on CRAN, so options:Another trick is using
getFromNamespace
The only advantage over
:::
is that you don't get any NOTEs and it's allowed on CRAN. Of course this is not good practice as a hidden change inpkg
can break your package.Note: With roxygen you have to also write
#' @importFrom utils getFromNamespace
or put it in your NAMESPACE manually.