Shinny App in R program to use Azure key vault for database secrets

Hello,

I would like to know how to use Azure Key vault for our Shinny Application. We have deployed the shinny app as a docker image in the Azure container registry which is then deployed to Azure App Service as docker image.

Now the image/code has hard coded database secrets that we want to secure and integrate with Azure Key vault. We can create the secrets in azure key vault and in the azure app settings we can add/reference the key vault secrets.

The question is how we can reference the kay vault for the secrets in the code that is based on R language?
Is the any library that we add? Is there any reference or sample code how to use azure key vault in the code?