Skip to content
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

$get_contributions(alphabetical_order = TRUE) doesn't reorder authors only #18

Closed
arnaudgallou opened this issue Aug 7, 2023 · 0 comments · Fixed by #19
Closed

$get_contributions(alphabetical_order = TRUE) doesn't reorder authors only #18

arnaudgallou opened this issue Aug 7, 2023 · 0 comments · Fixed by #19
Labels
bug Something isn't working Plume Plume related issue

Comments

@arnaudgallou
Copy link
Owner

aut <- Plume$new(tibble::tibble(
  given_name = c("Zip", "Pim"),
  family_name = c("Zap", "Pam"),
  role_1 = c("z", NA),
  role_2 = c("a", "a")
))
aut$get_contributions(roles_first = FALSE, by_author = TRUE, alphabetical_order = FALSE)
#> Z.Z.: z and a
#> P.P.: a
aut$get_contributions(roles_first = FALSE, by_author = TRUE, alphabetical_order = TRUE)
#> Z.Z.: a and z
#> P.P.: a

aut$get_contributions(roles_first = TRUE, by_author = FALSE, alphabetical_order = FALSE)
#> z: Z.Z.
#> a: Z.Z. and P.P.
aut$get_contributions(roles_first = TRUE, by_author = FALSE, alphabetical_order = TRUE)
#> a: P.P. and Z.Z.
#> z: Z.Z.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Plume Plume related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant