Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-28 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Jun 27, 2016 at 7:04 PM, Tim Keitt wrote: > > > http://www.keittlab.org/ > > On Mon, Jun 27, 2016 at 5:18 PM, Duncan Murdoch > wrote: > >> On 27/06/2016 5:46 PM, Tim Keitt wrote: >> >>> >>> >>> http://www.keittlab.org/ >>> >>> On Mon, Jun 27, 2016 at 10:19 AM, D

Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-28 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Jun 27, 2016 at 5:18 PM, Duncan Murdoch wrote: > On 27/06/2016 5:46 PM, Tim Keitt wrote: > >> >> >> http://www.keittlab.org/ >> >> On Mon, Jun 27, 2016 at 10:19 AM, Duncan Murdoch >> mailto:murdoch.dun...@gmail.com>> wrote: >> >> On 27/06/2016 11:08 AM, Tim K

Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-27 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Jun 27, 2016 at 4:46 PM, Tim Keitt wrote: > > > http://www.keittlab.org/ > > On Mon, Jun 27, 2016 at 10:19 AM, Duncan Murdoch > wrote: > >> On 27/06/2016 11:08 AM, Tim Keitt wrote: >> >>> http://www.keittlab.org/ >>> >>> On Mon, Jun 27, 2016 at 3:22 AM, Joris Me

Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-27 Thread Duncan Murdoch
On 27/06/2016 5:46 PM, Tim Keitt wrote: http://www.keittlab.org/ On Mon, Jun 27, 2016 at 10:19 AM, Duncan Murdoch mailto:murdoch.dun...@gmail.com>> wrote: On 27/06/2016 11:08 AM, Tim Keitt wrote: http://www.keittlab.org/ On Mon, Jun 27, 2016 at 3:22 AM, Joris Meys mailto

Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-27 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Jun 27, 2016 at 10:19 AM, Duncan Murdoch wrote: > On 27/06/2016 11:08 AM, Tim Keitt wrote: > >> http://www.keittlab.org/ >> >> On Mon, Jun 27, 2016 at 3:22 AM, Joris Meys wrote: >> >> > If you want to call a non exported function, you need three colons >> > >> >

Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-27 Thread Duncan Murdoch
On 27/06/2016 11:08 AM, Tim Keitt wrote: http://www.keittlab.org/ On Mon, Jun 27, 2016 at 3:22 AM, Joris Meys wrote: > If you want to call a non exported function, you need three colons > > X:::f () > > And frankly, that is a bad idea. > I think you missed the point (and stated the obvious).

Re: [R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-27 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Jun 27, 2016 at 3:22 AM, Joris Meys wrote: > If you want to call a non exported function, you need three colons > > X:::f () > > And frankly, that is a bad idea. > I think you missed the point (and stated the obvious). A well-designed namespace feature would giv

[R-pkg-devel] Force namespace prefix for a loaded package function

2016-06-26 Thread Tim Keitt
It would be rather nice if we could define functions in our packages that must be called with the namespace prefix. I'd like to do #' @protected (or some such) f = function(...) list(...) in package scope and then library(x) f(1) # fails x::f(1) # succeeds Currently unless