Data directory for AzureR packages
AzureR_dir()
A string containing the data directory.
AzureAuth can store authentication credentials and OAuth tokens in a user-specific directory, using the rappdirs package. On recent Windows versions, this will usually be in the location C:\Users\(username)\AppData\Local\AzureR
. On Unix/Linux, it will be in ~/.local/share/AzureR
, and on MacOS, it will be in ~/Library/Application Support/AzureR
. The working directory is not touched (which significantly lessens the risk of accidentally introducing cached tokens into source control).
On package startup, if this directory does not exist, AzureAuth will prompt you for permission to create it. It's recommended that you allow the directory to be created, as otherwise you will have to reauthenticate with Azure every time. Note that many cloud engineering tools, including the Azure CLI, save authentication credentials in this way.