Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

niceume
Copy link
Contributor

@niceume niceume commented Apr 1, 2020

In the original implementation, multiple roles cannot be applied to role argument for functions such as desc$add_author(). This is because check_author_args() function called from add_author() calls is_string_or_null() for role argument. This checks whether the role is NULL or character vector with length of 1.
In the develop implementation for that I am creating pull request, role argument can be character vector with any length. Instead of is_string_or_null(), is_character_or_null() is implemented and used.

The following code is allowed in this implementation.

desc$add_author("Bugs", "Bunny", email = "[email protected]", role=c("ctb", "cph"))

@niceume
Copy link
Contributor Author

niceume commented Apr 1, 2020

This solves the issue( #77 )

Copy link
Member

@gaborcsardi gaborcsardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks great! I suggested a change to make the error message more precise, and can you please also add an item to the NEWS file? Thanks.

niceume and others added 2 commits April 1, 2020 19:00
More precise message

Co-Authored-By: Gábor Csárdi <[email protected]>
@niceume
Copy link
Contributor Author

niceume commented Apr 1, 2020

@gaborcsardi Thank you for your comment and commit ! NEWS file is also updated.

@gaborcsardi
Copy link
Member

Thanks! I added some commits to this PR, which then did not show up. Seems like some GitHub bug or temporary glitch, but I merged this manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants