I am working with roxygen2
library and devtools
. Building a package with the following structure:
data1.rda
and data2.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?
It might be a silly question but are you running roxygenise on your loaded package? Meaning that you first run devtools::load_all()
, and then roxygen2::roxygenise()
.
I've seen a couple of people making this mistake on other posts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With