Jonathan,

All exported functions must have documentation entries to pass R CMD check
without warnings.

Functions within your package do not need another function in your package
to be exported to call it without :::, but code not in your package (ie
functions in other packages or user code) do.

If you have reason to believe that a user or function from another package
will directly call a function, it should be exported, and thus documented.
If not, you can use them within code in your own package without exporting
them, using :::, or documenting them.

~G


On Fri, Jul 12, 2013 at 11:13 AM, Jonathan Greenberg <j...@illinois.edu>wrote:

> I think part of this may be my (possibly flawed) understanding of
> documentation requirements for CRAN -- if a function is exported to
> the namespace, does CRAN require documentation of that function?  The
> reason I ask is that I have a lot of these little functions that have
> no need for documentation (since they are only used internally by a
> larger, documented function -- no end-user would touch them).  If this
> is flawed understanding, do I just export it to the NAMESPACE and I'm
> good to go?
>
> --j
>
> On Fri, Jul 12, 2013 at 11:35 AM, Duncan Murdoch
> <murdoch.dun...@gmail.com> wrote:
> > On 13-07-12 5:52 PM, Jonathan Greenberg wrote:
> >> R-developers:
> >>
> >> I'm working on updating my R package "spatial.tools", and one thing I
> >> was wondering was the proper way to have hidden functions -- should I
> >> simply not export them to the namespace and use the ::: operator to
> >> call them (which is what I currently do)?
> >
> > Are you calling them from inside the package?  If so, you don't need the
> > :::.
> >
> > If you're not calling them from inside the package, then why not export
> > them?  I think you need to explain the context.
> >
> > Duncan Murdoch
> >
> >>
> >> --j
> >>
> >> --
> >> Jonathan A. Greenberg, PhD
> >> Assistant Professor
> >> Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
> >> Department of Geography and Geographic Information Science
> >> University of Illinois at Urbana-Champaign
> >> 607 South Mathews Avenue, MC 150
> >> Urbana, IL 61801
> >> Phone: 217-300-1924
> >> http://www.geog.illinois.edu/~jgrn/
> >> AIM: jgrn307, MSN: jgrn...@hotmail.com, Gchat: jgrn307, Skype: jgrn3007
> >>
> >> ______________________________________________
> >> R-devel@r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-devel
> >>
> >
>
>
>
> --
> Jonathan A. Greenberg, PhD
> Assistant Professor
> Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
> Department of Geography and Geographic Information Science
> University of Illinois at Urbana-Champaign
> 607 South Mathews Avenue, MC 150
> Urbana, IL 61801
> Phone: 217-300-1924
> http://www.geog.illinois.edu/~jgrn/
> AIM: jgrn307, MSN: jgrn...@hotmail.com, Gchat: jgrn307, Skype: jgrn3007
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



-- 
Gabriel Becker
Graduate Student
Statistics Department
University of California, Davis

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to