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 12, 2024. It is now read-only.
OS: Ubuntu 14.04
R version: 3.4.0
Pacakge version: 0.4.2.9110
I am trying to run a script using rorcid with Rscript. I completed the following steps, but I always get the following error: Error: Unauthorized (HTTP 401)
I registered an application with ORCiD with the redirect URL set to http://localhost
I entered the client secret to my .Renviron-file by setting the variable ORCID_TOKEN
Where did I go wrong?
The text was updated successfully, but these errors were encountered:
Can you run R interactively, and run orcid_auth(), then get the token out of that? Or does running orcid_auth()` not work when in R interactive session?
Thanks, running orcid_auth() did indeed do the trick! But I had to switch to a system that allows for an interactive session to obtain the token. In the terminal-only environment, orcid_auth() produced the following error:
> orcid_auth()
no ORCID token found; attempting OAuth authentication
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
/usr/bin/xdg-open: line 461: links2: command not found
/usr/bin/xdg-open: line 461: links: command not found
/usr/bin/xdg-open: line 461: lynx: command not found
/usr/bin/xdg-open: line 461: w3m: command not found
xdg-open: no method available for opening 'https://orcid.org/oauth/authorize?client_id=[...]
so i guess there's no way to open a browser in shell only env, so it can't work in that case. my smarter colleague tells me there's not really a way around this. So I guess we can at least document the pitfall
OS: Ubuntu 14.04
R version: 3.4.0
Pacakge version: 0.4.2.9110
I am trying to run a script using
rorcid
withRscript
. I completed the following steps, but I always get the following error:Error: Unauthorized (HTTP 401)
http://localhost
ORCID_TOKEN
Where did I go wrong?
The text was updated successfully, but these errors were encountered: