I am working with roxygen2
library and devtools
. Building a package with the following structure:
- 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"
When I run roxygen2::roxygenize()
I get this message:
First time using roxygen2. Upgrading automatically... Error in get(name, envir = env) : object 'data1' not found.
I have looked for similar questions, without an answer for this problem. Anyone has a suggestion?
@keywords data
to the end of#'
block? – Shooin@docType data
– Shooin@datatype
and `@name'. Could the problem come from this? – Mertens@
words and even has the name in quotes. – Shooin@doctype
it still works. It is like if it prefers to give@name
rather than defining it between" "
at the end of the code. – Mertens