Skip to content

Non utf-8 characters in DESCRIPTION file #272

@kellijohnson-NOAA

Description

@kellijohnson-NOAA

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions