[R-pkg-devel] Can roxygen2 export export() and S3method() to namespace?

Heather Turner ht at heatherturner.net
Fri Sep 22 14:44:44 CEST 2017


Hi Jens,

If you also have the line

#' @export all.bit

you will get 

export(all.bit)

in  the NAMESPACE file. You still need to keep 

#' @export

to get 

S3method(all,bit)

Best wishes,

Heather

On Fri, Sep 22, 2017, at 10:23 AM, Jens Oehlschlägel wrote:
> Hi,
> 
> is there a way to have roxygen2 write both export(<generic>,<class>)
> and S3method(<generic>,<class>) to the NAMESPACE file?
> 
> I tried
> 
> #' @rdname Summaries
> #' @export
> all.bit <- function(x, range=NULL, ...)
> 
> and only get
> 
> S3method(all,bit)
> 
> but not
> 
> export(all.bit)
> 
> Thanks for any help
> 
> 
> Jens Oehlschlägel
> 
> 
> P.S.
> 
> 
> roxygen2 version 6.0.1
> 
> 
>  > version
>                 _
> platform       x86_64-pc-linux-gnu
> arch           x86_64
> os             linux-gnu
> system         x86_64, linux-gnu
> status
> major          3
> minor          4.1
> year           2017
> month          06
> day            30
> svn rev        72865
> language       R
> version.string R version 3.4.1 (2017-06-30)
> nickname       Single Candle
> 
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list