Best practices on re-exporting functions from packages? Rd files with duplicated alias 'features':

I have defined some re-exports in a package

Like so:

#' Pipe operator
#'
#' See \code{magrittr::\link[magrittr]{\%>\%}} for details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs \%>\% rhs
NULL


#' @importFrom fablelite features features_at features_if features_all
#' @export
fablelite::features

#' @export
fablelite::features_at

#' @export
fablelite::features_if

#' @export
fablelite::features_all

#' @importFrom tsibble as_tsibble n_keys
#' @export
tsibble::as_tsibble

#' @export
tsibble::n_keys

but it looks like this is not the correct way to do this? I get the following error on running devtools::check()

* checking Rd files ... OK
* checking Rd metadata ... WARNING
Rd files with duplicated alias 'features':
  ‘features.Rd’ ‘reexports.Rd’
Rd files with duplicated alias 'features_all':
  ‘features.Rd’ ‘reexports.Rd’
Rd files with duplicated alias 'features_at':
  ‘features.Rd’ ‘reexports.Rd’
Rd files with duplicated alias 'features_if':
  ‘features.Rd’ ‘reexports.Rd’
Rd files with duplicated alias 'reexports':
  ‘features.Rd’ ‘reexports.Rd’

I'm unsure how to best proceed?

The culprit was that I had re-exported the same function twice - this commit here solved this

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.