r-lib / httr

httr: a friendly http package for R
https://httr.r-lib.org
Other
986 stars 1.99k forks source link

Make `is_interactive()` react to "rlang_interactive" option #734

Closed jennybc closed 1 year ago

jennybc commented 1 year ago

This will allow me to make gargle's pseudo-OOB flow work in Google Colab, which would be really nice.

Relates to https://github.com/r-lib/gargle/pull/237, where I currently have utils::assignInNamespace("is_interactive", rlang::is_interactive, ns = "httr") in .onLoad(), but I can remove that if this PR gets merged and released. I don't think I could release gargle to CRAN with assignInNamespace().

Relates to https://github.com/r-lib/gargle/issues/140

jennybc commented 1 year ago

Just to record this analysis somewhere: I have not replaced every call to base::interactive() with is_interactive(). Why not? Where else is base::interactive() called?