在我的R软件包中,我已经以roxygen2
格式记录了一些功能和数据,但是运行devtools::document()
只会为我已记录的功能生成.Rd
文件,而不是数据。这是我的data.R
文件的全部内容:
#' Coordinates
#'
#' WGS84 coordinates of select communities.
#'
#' @format A data frame with 2 variables: \code{lon}, \code{lat}
"coords"
也不应该运行devtools::document()
也在coords.Rd
中创建一个man/
文件吗?
嗯,发现我将data.R
文件保存在data/
中,而不是在R/
中。猜猜这最终可以帮助别人吗?确保正确保存内容!