When calculating the nchar, we are including the colour
nchar(crayon::blue(""))
# 10
Since the gitlab runner doesn't have a colour terminal the first line is different.
Setting options("crayon.enabled" = FALSE) on my laptop reproduces the output on the runner.
Conversely, setting options("crayon.enabled" = TRUE) matches the runner to the laptop
I would suggest that this is a bug since the intention is to stipulate a fixed width of 75, but in the practice, the first line has a width of only 65.
ThierryO
added a commit
to inbo/checklist
that referenced
this issue
Jul 16, 2020
I have the following package DESCRIPTION
Running on my laptop
the Description tag isn't changed.
However, running on our GitLab runner it changes the description line to:
What I don't understand is why.
usethis(1.5.1) anddesc(1.20).I've searched 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.
Originally posted r-lib/usethis#887
The text was updated successfully, but these errors were encountered: