-
New
add_ror()method anddesc_add_ror()functions make it possible to add ROR IDs to authors directly instead of via thecommentargument. (@maelle, #158) -
All functions and methods managing possibly non individual authors (
add_author(),del_author(),add_role(),del_role(),search_for_author(), etc.) gain arorargument. (@maelle, #158) -
desc_get_built()no longer fails if Built spans multiple lines (#145, @seankross). -
An empty
Dependsfield is now properly normalized and formatted. (#148, @kevinushey) -
desc_coerce_authors_at_r()now works correctly for authors with multiple given names.
$set()anddesc_set()now can omit checks ifcheck = FALSEis set.
- The
description$write()method, and thus alldesc_*()functions work correctly now on R 4.3.x for packages that declare a non-UTF-8 encoding.
- The
$coerce_authors_at_r()method now does a much better job at setting the authors' roles (#114, @dpprdan).
-
DESCRIPTION objects created with the
!newcommand now omitLazyData: trueto match new CRAN checks (#105, @malcolmbarrett) -
description$write()now writes out the file in the correct encoding (#109). -
Authors@Rfields are now formatted differently when normalizing a DESCRIPTION file (#78). -
New
description$get_list(),description$set_list()and correspondingdesc_get_list()anddesc_set_list()values to query and create comma separated fields (#86).
-
desc_get_field()gains a booleansquish_wsparameter to normalize whitespace within the retrieved value. It defaults to the value oftrim_ws(TRUEby 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.
-
Adding authors with long names or other fields (
comment, typically) works well now (#91). -
get_deps()now removes unneeded whitespace from version requirements (#84). -
normalize()now does not dropAuthors@Ron non-UTF-8 systems when it has non-ASCII characters (#80). -
has_dep()now works well with dependencies listed multiple times (#97, @richfitz). -
Add
coerce_authors_at_r()method to convertAuthortoAuthors@R(#44, @muschellij2). -
add_author()and similar functions now allow a character vector of multiple roles (@niceume, #89). -
desc_set_deps()now inserts new packages in (case-insensitive) alphabetical order, if the existing packages are already in alphabetical order. -
New
add_author_gh()method anddesc_add_author_gh()function to add an author using the information available from GitHub V3 API. This method and function depend onghand are limited when the GitHub user full name is incomplete or not well parsed byas.person()and when their email address isn't available (@maelle, #71). -
When using
desc_normalize()the package dependencies are now alphabetically sorted (#66, @llrs). -
New
add_orcid()method anddesc_add_orcid()functions make it possible to add ORCID IDs to authors directly instead of via thecommentargument (@maelle, #70). -
All functions and methods managing authors (
add_me,add_author(),del_author(),add_role(),del_role(),change_maintainer(),search_for_author(),add_me(), etc.) gain anorcidargument (@maelle, #70). -
In
person()within theAuthors@Rfield,commentcan now be a named character vector (@maelle, #69; @gvegayon, #65). -
When using
desc(text=)parameter, settextConnection(encoding = "bytes")to handle cases when the input text is in a different marked encoding than the default encoding, such as UTF-8 input on Windows.
-
Add
get_field()method, with easier to use failure and fallback semantics (#62) -
Use the
Encodingfield to read and write DESCRIPTION with the correct encoding. UTF-8 is always used internally by desc. (#52, #53) -
Add
get_built()function to parse the Built field used in package binaries. (#48, @jimhester) -
get_deps()(anddesc_get_deps()) return a zero-row data frame instead ofNULLfor packages without any dependencies, for consistency. -
Empty
DESCRIPTIONfiles are handled more gracefully, as are querying no fields withdesc_get() -
Remotes,VignetteBuilderandRdMacrosfields are syntax checked. (#59, @krlmlr) -
Account for non-URL content in the
URLfield (#57, @jennybc) -
Allow for IETF region subtag in
Languagefield (#55, @jeroen) -
Fix continuation lines in output
-
get_deps()returns empty data frame if no dependencies, instead ofNULL
- Relax the R >= 3.2.0 dependency, R 3.1.0 is enough now.
-
Fix bug when adding authors and there is no
Authors@Rfield -
Get
DESCRIPTIONfrom package archives (#40) -
Fix but in
del_dep()andhas_dep(), they only worked if the package was attached.
-
Fix formatting of
Collatefields, they always start at a new line now. -
Fix formatting of
Authors@Rfields, when changed. -
Keep trailing space after the
:character, see #14
First public release.