【发布时间】:2019-12-14 20:25:52
【问题描述】:
我正在寻找 @describeIn 的等效项,它允许我为多个 R 数据对象创建单个文档对象。
我曾希望是这样的:
#' Tree Distances
#'
#' These datasets contain the distances between sets
#' of 10-tip, 11-tip and 12-tip trees.
#'
#' @name treeDistances
#' @keywords datasets
"treeDistances10"
"treeDistances11"
"treeDistances12"
将生成一个适用于所有三个treeDistances## 对象的手册页,类似于使用@describeIn treeDistances Distances between 11-tip trees 在另一个函数中描述一个函数。
我注意到添加 @aliases treeDistance11 treeDistance12 会将文档页面与数据对象相关联,但没有引用“使用”部分中的对象 - 但我相信有更合适的方法来做到这一点?
【问题讨论】:
标签: r dataset documentation documentation-generation roxygen2