With an .R file with @includeRmd, `document()` wraps differently on RStudio versus outside RStudio

I have an .R file that uses #' @includeRmd vignettes/a.md . When I document from RStudio (either with Shift + Ctrl + D or with devtools::document() from the console or RStudio's Terminal), the resulting .Rd file wraps at 80 characters, but not when I run devtools::document() from a terminal outside RStudio (in this case it seems to not wrap at 80 characters).

Here is the output from RStudio:

And here is the output from a terminal

Any idea why this difference?

This topic was automatically closed after 45 days. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.