And note the existence of the "Internal" keyword for documentation:
http://www.hep.by/gnu/r-patched/r-exts/R-exts_50.html
On Fri, Mar 31, 2017 at 5:35 AM, Wolfgang Huber
wrote:
>
> Thanks Juan; the .point used to be a way to do this, but since the
> introduction of namespaces to R, it is neith
Thanks Juan; the .point used to be a way to do this, but since the
introduction of namespaces to R, it is neither necessary nor sufficient
for private functions. See e.g. .Hub in the AnnotationHub package, or
the .Call function in base.
See
https://cran.r-project.org/doc/manuals/r-release/R
HI Jing,
You should export FA FB and FC, but don't export FD. If using roxygen2
for documentation you use "#' @export" on the ones to export, and just
don't document FD and it won't be exported by default.
Hope that helps,
-Nathan
On 03/30/2017 04:02 PM, Jing Wang wrote:
Hi,
I have
Hi Wang
You can create internal functions calling them as ".function", the point is
necessary to declare an internal function. Additionally, you can put all
your internal functions in the same R file and is not necessary create the
documentation for this functions.
Best regards.
Juan D. Henao
2
Hi,
I have three functions (FA,FB,FC) in the package and all these functions need
to call another function (FD). But I do not want other users to use the
function FD and thus I do not want to create the document for FD in the R
package.
Could you please give me some suggestion how to do