Closed nickdickinson closed 1 year ago
In the next release, there is a global option that is a temporary workaround and allows one to avoid the interactive prompts to save the file:
options(activityinfo.interactive = FALSE)
If you only want this set temporarily in a session that cleans up after the code is finished or an error occurs:
library(withr)
withr::with_options(list(activityinfo.interactive = FALSE), {
# Your ActivityInfo r code here
})
Eventually we would like an argument saveCredentials that if it is set to TRUE then it would save the credentials to a file and if FALSE it would not, otherwise if missing it would default to the normal interactive approach that current users know.
Accidentally wrote TRUE but I have no edited the example above to FALSE for not asking interactively whether the file should be saved.
We should consider this functionality as ready?
Yes, if you install the latest version from Github then it should work.
@nickdickinson we can close this right?
Following PR #27, the request is to offer a way to avoid the request to save the file while in interactive mode.