重新导出声明不同@rName的函数时出现警告

重新导出声明不同@rName的函数时出现警告,r,roxygen,R,Roxygen,我有一个包,它除了重新导出其他包的函数外什么也不做* 但是,其中一个函数是DBI::dbBegin: #' @importFrom DBI dbBegin #' @export DBI::dbBegin 如果我随后使用roxygen来构建文档,它就可以正常工作 ==> devtools::document(roclets = c('rd', 'collate', 'namespace')) Updating foo documentation Writing NAMESPACE Loa

我有一个包,它除了重新导出其他包的函数外什么也不做*

但是,其中一个函数是
DBI::dbBegin

#' @importFrom DBI dbBegin
#' @export
DBI::dbBegin
如果我随后使用
roxygen
来构建文档,它就可以正常工作

==> devtools::document(roclets = c('rd', 'collate', 'namespace'))

Updating foo documentation
Writing NAMESPACE
Loading foo
Writing reexports.Rd
Writing NAMESPACE
Documentation completed
但是,当我构建包时,会抛出一个警告:

==> Rcmd.exe INSTALL --no-multiarch --with-keep.source foo

[...]
*** installing help indices
  converting help for package 'foo'
    reexports                               html  
Rd warning: C:/Users/xxx/Documents/foo/man/reexports.Rd:14: file link 'dbBegin' in package 'DBI' does not exist and so has been treated as a topic
[...]
这里的问题是
DBI::dbBegin
的手册页实际上被称为
transactions.Rd
(以及其他函数)

构建本身是成功的,甚至使用文档本身也是有效的:
?foo::dbBegin
打开标准的“从其他包导出的对象”页面,该页面成功链接到正确的手册页

因此,据我所知,这个警告似乎是无害的,但我是否可以使用
roxygen
将其指向正确的手册页

*那是谎言