[Bioc-devel] Question about R functions

Sean Davis seandavi at gmail.com
Fri Mar 31 13:11:17 CEST 2017


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 <wolfgang.huber at embl.de>
wrote:

>
> 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-exts.html
> #Package-namespaces
> http://r-pkgs.had.co.nz/namespace.html
>
> Wolfgang
>
> 30.3.17 22:46, Juan David Henao Sanchez scripsit:
>
>> 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
>>
>> 2017-03-30 15:02 GMT-05:00 Jing Wang <jingwang.uestc at gmail.com>:
>>
>> 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 that?
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>         [[alternative HTML version deleted]]
>>>
>>> _______________________________________________
>>> Bioc-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>>>
>>>
>>
>>
>>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>



-- 
Sean Davis, MD, PhD
Center for Cancer Research
National Cancer Institute
National Institutes of Health
Bethesda, MD 20892
https://seandavi.github.io/
https://twitter.com/seandavis12

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list