[R-pkg-devel] Help needed to setting custom packages for R 3.1.2

Hadley Wickham h.wickham at gmail.com
Mon Jul 20 23:09:16 CEST 2015


On Mon, Jul 13, 2015 at 5:38 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 13/07/2015 5:36 PM, Seth Wenchel wrote:
>> Are you exporting the functions from pkgB and pkgC? It's hard to tell from
>> your table below. The easiest way is to add a comment before each of the
>> functions in pkgB and pkgC that you want to expose to the users.
>>
>> #' @export
>> foo <- function(){...}
>>
>> Then run roxygen::roxygenise() to build the NAMESPACE file.
>
> That's very dangerous advice.  roxygen stomps on all kinds of things
> besides the things you want it to touch.

It used to, but it doesn't any more. (As far as I know - of course
there may be bugs)

Hadley

-- 
http://had.co.nz/



More information about the R-package-devel mailing list