-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Line 7 in c0beabc
person("Maëlle", "Salmon", role = "aut"), |
leads to warning messages when running the tests, e.g.,
checks <- make_check_data ()
ci_out <- output_pkgchk_branch_is_master (checks)
expect_equal (
ci_out$summary,
"Default GitHub branch of 'master' is not acceptable."
)
Warning messages:
1: In grep("^[^\\s]+:$", lines, perl = TRUE, value = TRUE) :
input string 7 is invalid UTF-8
Calls: expect_equal ... idesc_create_text -> read_dcf -> sub -> is.factor -> grep
2: In grep("^[^\\s]+:$", lines, perl = TRUE, value = TRUE) :
input string 7 is invalid UTF-8
Calls: expect_equal ... idesc_create_text -> read_dcf -> sub -> is.factor -> grep
This is because there are non utf-8 characters in Maelle's name. The warnings are coming from desc::read_dcf()
because of a call to grep()
, i.e., grep("^[^\\s]+:$", lines, perl = TRUE, value = TRUE)
. The warning message is given twice because read_dcf is called twice while evaluating the expectation. This warning message is not a deal breaker but it is alarming when running the tests locally, especially for a new contributor. I am not sure if we can change the name in the DESCRIPTION file to use utf-8, list the encoding for the DESCRIPTION file if not utf-8, or I need to move this issue with a reproducible example to {desc}? Thanks in advance for the guidance here.
Metadata
Metadata
Assignees
Labels
No labels