roxygen2是一个用于R语言的文档化工具,它可以帮助开发人员在R代码中添加注释和文档,并生成可读性强的文档。它的主要功能是自动化文档生成和代码注释。 roxygen2可以忽略R文件夹中的单个文件,这意味着在生成文档时,roxygen2将不会处理该文件中的函数和对象。这在某些情况下是有用的,比如当一个文件包含一些不需要...
代码语言:javascript 复制 ![](`r system.file(package = "my_package", "extdata", "images", "my_image.png")`) 这也不起作用。 那么,我必须将图像放在哪里才能使它们可用,如何将它们包含在函数文档中呢? r image roxygen2 广告 CDN特惠0.02元/GB起 一键接入,全球加速!提供全球范围内快速、稳定、智...
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. ShareTweet You might know that it’s possible to extend roxygen2 to do all sorts of cool things including but not limited to: documenting your internal functions for developers only (that...
Deprecating functions as described above can be automated using templates. One can define a template for each additional block. ## template-depr_pkg.r #' @name ourPkg-deprecated #' @section \code{<%= old %>}: #' For \code{<%= old %>}, use \code{\link{<%= new %>}}. ## tem...
In-source documentation for R (:warning: :warning: :warning: please submit your pull requests to the upstream repo instead of this repo :warning: :warning: :warning:) - GitHub - yihui/roxygen2: In-source documentation for R (:warning: :warning: please su
R/site-library/roxygen2/doc/roxygen2.R /usr/lib/R/site-library/roxygen2/doc/roxygen2.Rmd /usr/lib/R/site-library/roxygen2/doc/roxygen2.html /usr/lib/R/site-library/roxygen2/help/AnIndex /usr/lib/R/site-library/roxygen2/help/aliases.rds /usr/lib/R/site-library/roxygen2/help...
:exclamation: This is a read-only mirror of the CRAN R package repository. roxygen2 — In-Line Documentation for R. Homepage: https://roxygen2.r-lib.org/, https://github.com/r-lib/roxygen2 Report bugs for this package: https://github.com/r-lib/roxygen2
roxygen2是 Hadley Wickham 为方便文档而创建的软件包。 它允许在由#'开始的行中包含 R 脚本中的文档。传递给文档的不同参数以@开头,例如包的创建者将按如下方式编写: #' @author The Author 例如,如果我们想要记录以下函数: mean<-function(x) sum(x)/length(x) ...
您可以從以下任意站台的 pool/universe/r/r-cran-roxygen2/ 子目錄中下載所需的文件:注意: 某些瀏覽器需要您明確告訴它們,您僅僅是想保存這些文件,並非檢視或執行它們。對於 Firefox 或者 Mozilla ,您可能需要在按住 Shift 鍵的同時點擊上面的 URL 超連結。
r roxygen2 roxygen 1个回答 0投票 首先请注意,仅当打开 markdown 支持 时,才能将 内联代码 与{Roxygen2} 结合使用。这可以通过以下任一方式实现: 通过将 Roxygen: list(markdown = TRUE) 插入到包描述文件中(例如, usethis::use_roxygen_md())来全局 在当前的氧块中使用 @md 进行本地 正如您所...