【问题标题】:Generating a the package documentation file [duplicate]生成包文档文件[重复]
【发布时间】:2016-02-22 13:35:32
【问题描述】:

我正在使用 devtools 组合一个 R 包。似乎 CRAN 上的大多数软件包都有一个文档文件,涵盖了所有文档化的功能。我该如何构建它?

我有 pkg​​name.R,像这样:

#' _PACKAGE
#' @encoding utf-8
#'
#' @title Show where Adam bought the beer.
#'
#' @description The package consists of diverse functions to analyse
#' the path between Adam and the beer.
#'
#' @author Rolf Marvin Bøe Lindgren <rolf@grendel.no>
#' @docType package
#' @name Tarnation
#' 
#' 
"_PACKAGE"
#> [1] "_PACKAGE"
#'

这会生成一个很好的帮助文件。

我假设有一种简单的方法或一种繁琐的方法来生成一个全面的文档文件。非常感谢您提供指向相关文档的指针。

【问题讨论】:

标签: r roxygen2


【解决方案1】:
R CMD check <packagename>

&lt;packagename&gt;.Rcheck生成它

【讨论】:

    猜你喜欢
    • 2011-12-09
    • 2016-10-30
    • 1970-01-01
    • 1970-01-01
    • 2011-03-22
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 2013-09-21
    相关资源
    最近更新 更多