我正在使用 roxygen2
库和 devtools
。构建一个具有以下结构的软件包:
- Inside /data folder I have two .rda files with the information of each dataset. Let's call them
data1.rda
anddata2.rda
. Inside /R folder I have two files, one with the functions created (and their explanation) and another one called data.R with the information of each dataset.
#' Description 1 #' #' Simple definition #' #' @format The \code{data.frame} contains 2 variables: #' \describe{ #' \item{a}{The first variable.} #' \item{b}{The second variable.} #' } "data1"
当我运行 roxygen2::roxygenize()
时,出现以下消息:
首次使用roxygen2。自动升级... 错误:在环境中未找到对象"data1"。
我已经寻找了类似的问题,但没有答案解决这个问题。有人有建议吗?
#'
块的末尾添加@keywords data
,它是否有效? - Paolo