[R] Namespace in packages

Erich Neuwirth erich.neuwirth at univie.ac.at
Thu Sep 1 14:20:45 CEST 2011


On 9/1/2011 1:04 PM, Eran Eidinger wrote:

>>
>>> Hello,
>>>
>>> I wonder how I might create a package that only reveals some of the
>>> function
>>> in the package to the user.
>>>
>>> I've tried creating an R package using the following:
>>> f<- function(x,y) x+y
>>> g<- function(x,y) x-y
>>> h<- function(x,y) f(x,y)*g(x,y)
>>>
>>> package.skeleton(list=c("f","**g","h"), name="mypkg")

                                 ^ what is the meaning of ** here?
                                 such an object seems not to be
				defined.



More information about the R-help mailing list