r-lib / usethis

Set up commonly used 📦 components
https://usethis.r-lib.org/
Other
854 stars 284 forks source link

Inconsistent output from tidy_description #887

Closed csgillespie closed 5 years ago

csgillespie commented 5 years ago

I have the following package DESCRIPTION

Package: jrIdentity
Title: Style Jumping Rivers Branded Content
Version: 0.0.1
Authors@R:
    person(given = "Jumping",
           family = "Rivers",
           role = c("aut", "cre"),
           email = "info@jumpingrivers.com")
Description: Package to provide RMarkdown templates to create
    Jumping Rivers branded content.
License: file LICENSE
Imports:
    rmarkdown,
    rmdformats
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
Suggest: knitr

Running usethis::use_tidy_description() doesn't change the file. However, when I run use_tidy_description() on our GitLab runner it changes the description line to:

Description: Package to provide RMarkdown templates to create Jumping 
     Rivers branded content.

What I don't understand is why.

I've searched usethis and desc for a width option, but it appears the width of the file is hard-coded

reprex

The DESCRIPTION file above. Not sure what the correct output should be.

jennybc commented 5 years ago

Do you have an easy way to figure out if usethis has anything to do with this? I sort of suspect it should repro with desc alone (?), although I obviously have something to gain from that 😬