r-lib / revdepcheck

R package reverse dependency checking
https://revdepcheck.r-lib.org
Other
99 stars 31 forks source link

revdepcheck::cloud_status() failing #299

Closed hadley closed 2 years ago

hadley commented 3 years ago
revdepcheck::cloud_check()
#> Status of 'e241596a-0ffa-481f-91fc-dc4d781f9809'Error in vec_data(x) * TICS_PER_SECOND : 
#>   non-numeric argument to binary operator
#> Run `rlang::last_error()` to see where the error occurred.
<error/rlang_error>
Error in vec_data(x) * TICS_PER_SECOND : 
  non-numeric argument to binary operator
Backtrace:
     █
  1. ├─revdepcheck::cloud_status()
  2. │ └─revdepcheck:::cloud_status_check(job_id)
  3. │   └─cli::cli_status_update(id = status_id, status_bar_text)
  4. │     └─cli:::cli__message(...)
  5. │       └─cli:::cli__message_emit(cond)
  6. │         ├─base::withRestarts(...)
  7. │         │ └─base:::withOneRestart(expr, restarts[[1L]])
  8. │         │   └─base:::doWithOneRestart(return(expr), restart)
  9. │         └─cli:::cli__default_handler(cond)
 10. │           └─cli:::cli_server_default(msg)
 11. │             └─cli:::cli_server_default_safe(msg)
 12. │               ├─base::do.call(app[[type]], msg$args)
 13. │               └─(function (id = NULL, msg, msg_done = NULL, msg_failed = NULL) ...
 14. │                 └─cli:::clii_status_update(app, id, msg, msg_done, msg_failed)
 15. │                   └─app$inline(msg)
 16. │                     └─cli:::clii__inline(app, text, .list = .list)
 17. │                       └─base::lapply(...)
 18. │                         └─cli:::FUN(X[[i]], ...)
 19. │                           └─glue::glue(...)
 20. │                             └─glue::glue_data(...)
 21. └─(function (expr) ...
 22.   └─cli:::.transformer(expr, env)
 23.     └─cli:::inline_collapse(...)
 24.       ├─glue::glue_collapse(as.character(x), sep = sep, last = last)
 25.       ├─base::as.character(x)
 26.       └─hms:::as.character.hms(x)
 27.         └─vctrs::vec_cast(x, character())
 28.           └─(function () ...
 29.             └─hms:::vec_cast.character.hms(x = x, to = to, x_arg = x_arg, to_arg = to_arg)
 30.               └─hms:::format_hms(x)
 31.                 └─hms:::decompose(x)
hadley commented 3 years ago

(And is glue_data() doing evaluation in the correct frame?)

gaborcsardi commented 3 years ago

This is a bug already fixed in dev cli.

jennybc commented 2 years ago

If I'm reading this conversation correctly, this is no longer a problem. Personally, my recent calls to revdepcheck::cloud_status() have been successful.