-
Notifications
You must be signed in to change notification settings - Fork 28
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
keyring 1.2.0 not working when kniting R markdown file #116
Comments
Can you please include the error message from keyring? |
Hi I already pasted the error message in the op |
No, it is not. Your code catches the error in E.g.
Btw. it also does not run |
I have this problem and it's really hurting. This works if I use getPass instead. I could work around this issue if keyring_create allowed an optional password to be passed in. It would be more logic in my code I'm working on. However at present this blocks me from being able to use keyring to manage api_keys for producing reports in Rmarkdown.
|
Also I'm using R 4.1.2. RStudio, 2021.09.0 Build 351 |
This will be eventually fixed in askpass: r-lib/askpass#3 Until then you can use a workaround and query the password with
|
Hi, when using latest version (1.2.0) to knit R markdown file, there's no prompt for password.
if(!exists(".pwd")) {
tryCatch({
.pwd<- key_get("db", keyring = "ds")
# make sure to lock the keyring at the end
keyring_lock("ds")
}, error = function(e) {
cat("Error when unlocking ds")
stop()
}
)
}
And the error message are
After switching back to older version keyring (1.1.0) the problem is gone.
The text was updated successfully, but these errors were encountered: