r语言 - 使用 roxygen2 导出 sysdata.rda 中的多个对象



我的软件包的sysdata.rda文件中有两个对象(page.heightpage.width)。我用这样的roxygen2记录了它们

#'@name page.height
#'@aliases page.width
#'@title Standard dimensions
#'itemize{
#'  item{page.height}{Maximal height of a figuur (in inch)}
#'  item{page.width}{Width of a figure covering two columns (in inch)}
#'}
#'@docType data
#'@export
#'@usage page.height
#'@keywords datasets
NULL

导出page.height对象,但不导出page.width对象。我应该如何记录这一点,以便将两者导出并记录在同一个帮助文件中?

我在 Roxygen2 文档中找到了它: 明确命名要导出的对象

#'@export page.height page.width

最新更新