R18
R18

Reputation: 1560

Data not found in documentation with roxygen2

I am working with roxygen2 library and devtools. Building a package with the following structure:

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?

Upvotes: 6

Views: 1416

Answers (3)

Faustin Gashakamba
Faustin Gashakamba

Reputation: 171

Please try adding these additional tags in your comments: @name, @docType, and @references

Upvotes: 0

Mini Fridge
Mini Fridge

Reputation: 939

The roxygen2::roxygenize method does not load the package properly. But you can replace this step with devtools::document(package_path)

Upvotes: 0

FilipeTeixeira
FilipeTeixeira

Reputation: 1160

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.

Upvotes: 4

Related Questions