r-lib / keyring

:closed_lock_with_key: Access the system credential store from R

Home Page:https://keyring.r-lib.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keyring_create fails for backend_secret_service

eyherabh opened this issue · comments

The example given in the manual of backend_secret_service was triggering an error with message "Error: attempt to apply non-function" due to calling kb$create_keyring instead of calling kb$keyring_create. Fixing the example by calling the latter does not solve the issue. I fixed it by replacing create_keyring with keyring_create in the manual, on R side, and on C side. Now it works without errors. This is done in pull-request #82

This is a good catch, thank you for pointing it out. The correct command is keyring_create() but the example in backend_secret_service() has it as create_keyring(). Confusing indeed! I agree that the docs should be fixed.