usethis::use_tidy_description()

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.

  • Both systems are ubuntu 18.04
  • Both running R 3.6
  • Both access the file via a GitLab repo
  • Both use the same versions of usethis and desc

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

Any ideas?

This is a bug in the desc package. I've raised an issue.

Essentially, when calculating the length of a string the colour of the string is used as part of the length. In gitlab, there were no colours.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.