RStudio: build and reload adds an empty line to the "offers" field in the DESCRIPTION file

whenever I launch the Build & Reload panel from RStudio Build , I get a message

 ==> Rcmd.exe INSTALL --no-multiarch rwiots Error: contains a blank line 

and, indeed, when I look, my DESCRIPTION file contains an empty line in the Suggests field. If I delete this, it will be created again when I try Build & Reload .

I have the option Generate documentation with Roxygen checked, and all the checkboxes are checked in the Configure... dialog box that comes with it.

I really like documenting my functions with roxygen2 and creating the RStudio NAMESPACE file and parts of my DESCRIPTION file. So how can I overcome this very strange problem?

Thanks a lot in advance Rob Levy

+8
r rstudio roxygen2
source share
1 answer

Hadley had a key:

If the DESCRIPTION file has a Suggests: but you don’t offer anything, the Build & Reload functionality in RStudio adds an empty line, which then interrupts the build process!

+4
source share

All Articles