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

2017-09-22 Thread Heather Turner
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(,)
> and S3method(,) 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

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

2017-09-22 Thread Jens Oehlschlägel

Hi,

is there a way to have roxygen2 write both export(,)
and S3method(,) 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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel