-
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
changing maintainer email does not work as expected #154
Comments
|
I see, it looks for the person with the email provided and changes that person's role. Thanks. |
For anyone interested, here is how I changed the maintainer email when there is a single author present: suppressPackageStartupMessages(library(desc))
desctext <- "
Package: Foo
Title: A test package
Version: 0.99.0
Authors@R: c(
person('John', 'Snow', email = 'john.snow@email.com',
role = c('aut', 'cre')
)
)
Description: This is a test.
Depends:
R (>= 3.0.0)
Encoding: UTF-8
"
desc <- desc(text = desctext)
desc$add_author(
given = "John", family = "Snow",
email = "john.snow@newemail.edu"
)
desc$change_maintainer(
given = "John", family = "Snow",
email = "john.snow@newemail.edu"
)
desc$add_role(
role = "aut",
given = "John", family = "Snow",
email = "john.snow@newemail.edu"
)
desc$del_author(
given = "John", family = "Snow",
email = "john.snow@email.com",
)
#> Author removed: John Snow.
desc
#> Package: Foo
#> Title: A test package
#> Version: 0.99.0
#> Authors@R (parsed):
#> * John Snow <john.snow@newemail.edu> [cre, aut]
#> Description: This is a test.
#> Depends:
#> R (>= 3.0.0)
#> Encoding: UTF-8 Created on 2024-08-22 with reprex v2.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Gábor, @gaborcsardi
I am interested in changing only the maintainer email from the
Authors@R
field.I tried to use
change_maintainer
function but it is not changing the emailas expected (see the
reprex
below).Is this the right way to think about it?
I also tried
desc_change_maintainer
and it didn't work either.Thanks!
Created on 2024-08-22 with reprex v2.1.1
I am using
The text was updated successfully, but these errors were encountered: