Closed MichaelChirico closed 1 year ago
I've just re-read this cluster of issues and I still feel as I did when I closed the bigrquery issue. I'm OK with the docs as they are. I think this pair of functions just doesn't do what you were hoping it did.
I am writing tests and would like a set/unset workflow like:
I assume
drive_auth()
anddrive_deauth()
fit the bill, but was thrown a bit by the description in?drive_deauth
:This makes it sound like they are more used for a different purpose, rather than for the flow I had in mind (re-setting state after a test). It would be helpful for the documentation to be more explicit here.
If they are opposites, it might also be useful to offer a
withr
-esque pair of helpers useful for tests, i.e.with_auth(...)
andlocal_auth(...)
.If they are not opposites, it would be helpful to call this out in the documentation, and suggest alternatives / allude to why it may be difficult to un-set authorization in a given R session.