r - @title Roxygen 中缺少名称

标签 r roxygen

我有 R6Class 的文档:

#' Root component that don't have parent,
#'
#' It should not be used directly, only using \code{\link{pkg::component}} function.
#'
#' @name BaseComponent
#' @importFrom R6 R6Class
#' @docType class

#' @keywords components, architecture, structure

和 roxygen 显示警告:

Warning: [c:\projects\pkg\R\components.R:1] @title Missing name



我不知道为什么它显示第 1 行,我的代码不在第 1 行。

添加@title 不会改变任何我不断收到此警告的内容。

最佳答案

警告混淆了文件的最后一行:

#' init extend on base battery component
BaseComponent$extend <- make.extend(BaseComponent)

更换 #'##解决了这个问题。

关于r - @title Roxygen 中缺少名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60779639/

相关文章:

python - 什么是 R 中不同颜色的 "good"调色板? (或 : can viridis and magma be combined together? )

r - 如何读取用 R 加密的 .xls 文件?

r - 每列不同的硬阈值

documentation - R 文档与 Roxygen?

r - 在我创建的 R 数据包中找不到数据集

roxygen2 和 RStudio,不创建函数的文档

R CMD氧不被识别

r - sparklyr:跳过文本文件的第一行

r - 将这个丑陋的 for 循环转换为对 R 更友好的东西

r - 在roxygen2中添加度数符号