You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
I have an R script that fetches the friends of a user. It reads the API consumer keys and access keys and secrets from an RData file, creates a new token, and then uses this token to fetch the friends of a user. When I run this script normally (for example, by clicking "source" on RStudio) it runs just fine. However, when I do "Source as Local Job" it doesn't work, giving an authentication error.
Expected behavior
I expect the authentication to happen even when the script is running as a local job (in the background)
I think you overwrite the token when you load it and then create it. Also if it is on that path and you set the path on R.environ correctly it should be picked up by rtweet automatically. Perhaps on the local jobs it doesn't load the environment variables?
@llrs I have verified that local jobs are child processes so that env vars are forwarded. Given the absence of a reprex, no response from the original filer, and the fact that we're overhauling auth anyway, I'd suggest we close this issue.
Problem
I have an R script that fetches the friends of a user. It reads the API consumer keys and access keys and secrets from an RData file, creates a new token, and then uses this token to fetch the friends of a user. When I run this script normally (for example, by clicking "source" on RStudio) it runs just fine. However, when I do "Source as Local Job" it doesn't work, giving an authentication error.
Expected behavior
I expect the authentication to happen even when the script is running as a local job (in the background)
Reproduce the problem
rtweet version
Session info
Token
The text was updated successfully, but these errors were encountered: