Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vignette for interfacing with other packages (rorcid, scholar, etc.) #50

Closed
jgeller112 opened this issue Mar 14, 2019 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jgeller112
Copy link

I am unable to knit the document when I try to pull data from my ORCID account. I have tried everything suggested by ?orid_auth. I get the following error:

Error: In non-interactive environments, please set ORCID_TOKEN env to a ORCID access token, see ?orcid_auth for details
Execution halted

Any solutions to this?

@mitchelloharawild
Copy link
Owner

As the error suggests, knitting a document is a non-interactive environment. You will need to set the ORCID_TOKEN to your R environment. The help file for orcid_auth should go into a bit more detail than I will here, but essentially:

Open your .Renviron file with usethis::edit_r_environ(), and add a new line containing ORCID_TOKEN = dc0a6b6b-b4d4-4276-bc89-78c1e9ede56e. This is an example token - you will need to obtain your own token using rorcid::orcid_auth().

@jgeller112
Copy link
Author

That worked! Thanks! Do you think it would benefit others by including that extra bit of detail in your vignettes? It could be that I am just clueless about changing things like that in my R environment.

@jgeller112 jgeller112 changed the title Interfacing with rorid Interfacing with rorcid Mar 14, 2019
@mitchelloharawild
Copy link
Owner

Sure thing. Updated the issue title for this.

@mitchelloharawild mitchelloharawild changed the title Interfacing with rorcid Vignette for interfacing with other packages (rorcid, scholar, etc.) Mar 14, 2019
@mitchelloharawild mitchelloharawild added the enhancement New feature or request label Mar 14, 2019
@mitchelloharawild mitchelloharawild added this to the v0.2.0 milestone Mar 14, 2019
@mitchelloharawild mitchelloharawild self-assigned this Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants