-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_authors()
fails when comment:
field has more than one entry
#91
Comments
This also results in normalization etc. failing. |
PR is welcome, probably just need to relax the argument check? |
Not sure if it should be its own issue, but the same thing happens with the desc <- desc::description$new("!new")
desc$set_authors(person(given = "First", family = "Author", role = c("aut", "ctb")))
desc$add_author(given = "Second", family = "Author", role = c("aut", "ctb"))
#> Error: role must be a string or NULL
sessionInfo()
#> R version 3.6.1 (2019-07-05)
#> Platform: x86_64-apple-darwin15.6.0 (64-bit)
#> Running under: macOS Catalina 10.15.6
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] rprojroot_1.3-2 digest_0.6.25 crayon_1.3.4 assertthat_0.2.1
#> [5] R6_2.4.1 backports_1.1.8 magrittr_1.5 evaluate_0.14
#> [9] highr_0.8 rlang_0.4.7 stringi_1.4.6 rmarkdown_2.3
#> [13] desc_1.2.0 tools_3.6.1 stringr_1.4.0 xfun_0.15
#> [17] yaml_2.2.1 compiler_3.6.1 htmltools_0.5.0 knitr_1.29 Created on 2020-09-04 by the reprex package (v0.3.0) |
@wkdavis I believe that this has been fixed already. |
@gaborcsardi I've updated my reprex with |
Besides an author's ORCID-ID, I would like to add their affiliation information to the
DESCRIPTION
file. If I use the below with only theORCID
or theaffiliation
entry in thecomment:
field, it works, when I try to use them both,desc::set_authors()
fails with the error:Example:
The text was updated successfully, but these errors were encountered: