Skip to content
Back to formatted view

Raw Message

Message-ID: <1506084284.256434.1114821112.0790F94C@webmail.messagingengine.com>
Date: 2017-09-22T12:44:44Z
From: Heather Turner
Subject: [R-pkg-devel] Can roxygen2 export export() and S3method() to namespace?
In-Reply-To: <b87c0c7c-b198-3f6a-0d09-036097249daf@truecluster.com>

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