Skip to content

desc (development version)

desc 1.4.3

CRAN release: 2023-12-10

  • $set() and desc_set() now can omit checks if check = FALSE is set.

desc 1.4.2

CRAN release: 2022-09-08

  • The description$write() method, and thus all desc_*() functions work correctly now on R 4.3.x for packages that declare a non-UTF-8 encoding.

desc 1.4.1

CRAN release: 2022-03-06

  • The $coerce_authors_at_r() method now does a much better job at setting the authors’ roles (#114, @dpprdan).

desc 1.4.0

CRAN release: 2021-09-28

  • DESCRIPTION objects created with the !new command now omit LazyData: true to match new CRAN checks (#105, @malcolmbarrett)

  • description$write() now writes out the file in the correct encoding (#109).

  • Authors@R fields are now formatted differently when normalizing a DESCRIPTION file (#78).

  • New description$get_list(), description$set_list() and corresponding desc_get_list() and desc_set_list() values to query and create comma separated fields (#86).

Breaking change

  • desc_get_field() gains a boolean squish_ws parameter to normalize whitespace within the retrieved value. It defaults to the value of trim_ws (TRUE by default). Example with desc’s current DESCRIPTION:

    Old behaviour:

    > desc::desc_get_field("Description")
    [1] "... DESCRIPTION files.\n    It is intended for packages ..."

    New behaviour:

    > desc::desc_get_field("Description")
    [1] "... DESCRIPTION files. It is intended for packages ..."

    If you want the old behaviour, just set squish_ws = FALSE.