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

Add What Could Possibly Go Wrong to import instruments vignette #54

Open
RaymondBalise opened this issue Jun 6, 2023 · 0 comments
Open
Assignees

Comments

@RaymondBalise
Copy link
Owner

.small[
If you see:

.red[

Error in inherits(ds, "data.frame") : object 'ds' not found

]

You likely have a problem in the web-address/URL. Make sure you have included the http:// at the beginning and /api/ at the end. It is easy to forget the / after api.

.red[

Error in REDCapR::redcap_metadata_read(redcap_uri = url, token = token) : 
  Assertion on 'token' failed: Must comply to pattern '^.{1,}$'.

]

tidyREDCap can't find the name of the API key in your .Renviron file. Check for inconsistency (a typo) between the two places where the name is typed.

.red[

Error in sanitize_token(token) : 
  The token is not a valid 32-character hexademical value.

]

The API key is invalid. Try to copy and paste it again. Restart R.

.red[

Error in \`pull()`:
! \`!!enquo(var)` must select exactly one column.
Run \`rlang::last_error()` to see where the error occurred.

]

The API key is not associated with a REDCap project. Try to copy and paste it again. Restart R.
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants