Mor*_*all 1 namespaces packages r
我已经开发了一个R软件包,但由于某些原因,当软件包被Roxygenised并安装时,与软件包一起使用的数据集没有正确加载.我在包的R文件夹中有一个.R脚本,如下所示
#' Score Card
#' @docType data
#' @name scoreCard
#' @aliases scoreCard
#' @format An object of class \code{data.frame} with 119 rows and 3 columns.
#' \describe{
#' \item{Category}{The Category for which an observation is made}
#' \item{Observation}{The possible responses given for each category}
#' \item{Score}{The score allocated against a response for each category}
#' }
#' @source Internal
#' @usage scoreCard
#' @keywords datasets
NULL
Run Code Online (Sandbox Code Playgroud)
这会在Roxygenise调用时为数据集创建一个.Rmd文件,但是当我尝试使用packageName::scoreCard它调用数据集时'scoreCard' is not an exported object from 'namespace:packageName'.任何人都可以发现我在上面的脚本中可能做错了什么或者可能出错的任何其他想法,我有点亏本吗?(数据集按正常情况存储在包的数据文件夹中.)怕我无法共享数据或包.