[R] Namespace problem

Duncan Murdoch murdoch at stats.uwo.ca
Wed Aug 8 21:14:11 CEST 2007

Dimitri Mahieux wrote:
> Hi All,
> I have some questions about making a R-package. I would like to use a 
> namespace. The package contains analysis functions and also
> a graphical user interface. I would like to allow user to use only the 
> analysis function and not the GUI functions which are mainly
> bindings to graphical elements. I have exported analysis functions using 
> export directives in a namespace file but when I want to use
> the GUI, it seems that all the GUI functions are unknown.
> Is there a way to solve this problem ?
If you don't export the functions, they won't normally be visible 
outside your package, but you can still use the ":::" notation to get 
them, e.g.


gets myfunction even if it was not exported.

Duncan Murdoch

More information about the R-help mailing list