devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Installed roxygen2 version (7.3.2) doesn't match required (7.3.1)

Open programgirl opened this issue 1 year ago • 4 comments

In preparation for submitting the package I have just finished to CRAN, I updated the R version I was using. I then installed all the more recent versions of the packages I was using, including roxygen2. Previously, as indicated in the title I was using 7.3.1.

Now, when running devtools::check(), I get the following: ══ Documenting ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════ ℹ Installed roxygen2 version (7.3.2) doesn't match required (7.3.1) ✖ check() will not re-document this package

programgirl avatar Nov 19 '24 09:11 programgirl

You either need to amend the version of roxygen2 in your DESCRIPTION file to 7.3.2, i.e., amend the line to

RoxygenNote: 7.3.2

Or you need to re-install the older version of roxygen2, e.g.

remotes::install_version("roxygen2", "7.3.1")

remlapmot avatar Nov 19 '24 09:11 remlapmot

That solved my problem. Would some text to say to update the version in the DESCRIPTION file help?

programgirl avatar Nov 19 '24 10:11 programgirl

Just ran into this exact issue. Given that the roxygen version was previously written by roxygen, why does it suddenly care what the description says? Seems like it should just update it.

marcuslehr avatar Jun 25 '25 13:06 marcuslehr

check() won't redocument it, but you can redocument it yourself which will automatically update the description. We could maybe make this is a bit more clear, but it's a devtools issue, so I'll move it there.

hadley avatar Oct 08 '25 12:10 hadley