Installed roxygen2 version (7.3.2) doesn't match required (7.3.1)
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
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")
That solved my problem. Would some text to say to update the version in the DESCRIPTION file help?
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.
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.