如何解决多个内部数据集的相同单个帮助 .Rd
我正在编写一个供个人使用的包,它使用了几个小型内部数据集。我想为每个写一个 ?help .Rd 。一些内部数据集是彼此的转换,我希望多个 ?dataset1 ?dataset2 调用指向同一个 .Rd 文件。
我在 /R/data.R
目录中使用 roxygen2 块。
我现在拥有的:
#' A description of a dataset.
#'
#'
#' @format This is how my dataset is formatted. Blah blah blah.
#'
#' \code{dataset_transformation_2} this one is pretty if you plot it
#'
"dataset_transformation_1"
#' A description of a dataset.
#'
#'
#' @format This is how my dataset is formatted. Blah blah blah.
#'
#' \code{dataset_transformation_1} this transformation is neato
#'
"dataset_transformation_2"
#' A description of a dataset.
#'
#'
#' @format This is how my dataset is formatted. Blah blah blah.
#'
#' \code{dataset_transformation_3} something something dark side
#'
"dataset_transformation_3"
类似于我想要的,但这不起作用:
#' A description of several datasets.
#'
#'
#' @format This is how my dataset is formatted. Blah blah blah.
#'
#' \code{dataset_transformation_1} this transformation is neato
#' \code{dataset_transformation_2} this one is pretty if you plot it
#' \code{dataset_transformation_3} something something dark side
#'
"dataset_transformation_1"
"dataset_transformation_2"
"dataset_transformation_3"
我希望我可以在控制台中输入 ?dataset_transformation_1
或 ?dataset_transformation_2
并获得相同的帮助文件。这可能吗?我该怎么做?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。