rhub icon indicating copy to clipboard operation
rhub copied to clipboard

I've used devtools::check_rhub() successfully for this package but now I'm getting an error

Open wkostelecki opened this issue 4 years ago • 8 comments

See error below using devtools 2.4.0:

devtools::check_rhub() √ checking for file 'C:\Users\wkost\Documents\GitHub\visa-chart-components\packages\charts-R/DESCRIPTION' ...

  • preparing 'visachartR': √ checking DESCRIPTION meta-information ...

  • checking for LF line-endings in source and make files and shell scripts

  • checking for empty or unneeded directories

  • building 'visachartR_1.0.2.tar.gz'

  • Uploading package Error in query("SUBMIT PACKAGE", data = list(email = unbox(email), token = unbox(email_get_token(email)), : Email address not validated

wkostelecki avatar Apr 15 '21 14:04 wkostelecki

You need to validate your email address. Please see the docs.

gaborcsardi avatar Apr 15 '21 14:04 gaborcsardi

I validated the email address already once and was able to use check_rhub() successfully about a week ago. I ran rhub::validate_email("email address", "token from email") now but I'm still seeing the same error after trying again.

wkostelecki avatar Apr 15 '21 18:04 wkostelecki

Only the latest token is valid, maybe you are using an older one. rhub::list_validated_emails() lists all validated emails on your computer. Make sure that you are the maintainer of the package, or supply the email argument to rhub::check().

To help more, you would need to show me what you are doing, e.g. the repo of the package and the exact output you get.

gaborcsardi avatar Apr 15 '21 19:04 gaborcsardi

It might be an error on our end, investigating...

gaborcsardi avatar Apr 16 '21 11:04 gaborcsardi

I thought you might have seen this issue: https://github.com/r-hub/rhub/issues/334#issuecomment-821109956

But it does not seem so. Do you still have problems? Can you run

rhub::list_my_checks()

?

gaborcsardi avatar Apr 16 '21 11:04 gaborcsardi

I'm still getting the same error with devtools::check_rhub(email = "[email protected]") It just gives me the error immediately (is it supposed to email a new token?).

It looks like the email is validated (green tick next to it when running rhub::validate_email()

I tried devtools::check_rhub(email = "[email protected]") using another email (which I had validated from maybe a few years ago) and that worked fine.

list_my_checks(email = "[email protected]") works for email2 but using the first email, I get this error:

> rhub::list_my_checks(email = "[email protected]")
Error in query("LIST BUILDS EMAIL", params = list(email = email, token = email_get_token(email))) : 
  Email address not validated

Anyway, I'm running these checks on behalf of the package maintainer (and before realising that check_rhub() has an email argument) so I'm happy to proceed using the second/working email going forward.

I'm guessing that going through the steps in rhub::validate_email() would have solved my problem though.

wkostelecki avatar Apr 16 '21 13:04 wkostelecki

Anyway, thanks for checking -- rhub is such a useful service!

wkostelecki avatar Apr 16 '21 13:04 wkostelecki

Yes, email2 is validated, email1 is not, so you could just validate it. Or keep using email2.

gaborcsardi avatar Apr 16 '21 13:04 gaborcsardi

This issue is about the previous R-hub system, it does not apply to the new system, so I am closing it now. Please see https://r-hub.github.io/rhub/ for the new system, R-hub v2.

gaborcsardi avatar May 09 '24 12:05 gaborcsardi