This file https://github.com/insightsengineering/teal.reporter/blob/main/dev/internal_examples.R was created out of multiple examples of internal functions that used :::. The usage of ::: in CRAN is highly discouraged. Since we wanted to keep those examples for future developers, but not necessarily pack them in the package we moved them to dev/ folder. dev/ folder is listed in .Rbuildignore and is not included in R package during the build.
After an internal discussion about the same manner for teal.code package we decided to keep internal examples in their respective R/*.R files. However we decided to substitute ::: with getFromNamespace() function.
This file https://github.com/insightsengineering/teal.reporter/blob/main/dev/internal_examples.R was created out of multiple examples of internal functions that used
:::
. The usage of:::
in CRAN is highly discouraged. Since we wanted to keep those examples for future developers, but not necessarily pack them in the package we moved them todev/
folder.dev/
folder is listed in.Rbuildignore
and is not included in R package during the build.After an internal discussion about the same manner for
teal.code
package we decided to keep internal examples in their respectiveR/*.R
files. However we decided to substitute:::
withgetFromNamespace()
function.