don't create token dir, AzureAuth will handle that

This commit is contained in:
Hong Ooi 2019-03-24 02:32:21 +11:00
Родитель 5eeb60988a
Коммит 38e5aec46e
1 изменённых файлов: 0 добавлений и 17 удалений

Просмотреть файл

@ -20,20 +20,3 @@ utils::globalVariables(c("self", "private"))
# default authentication app ID: leverage the az CLI
.az_cli_app_id <- "04b07795-8ddb-461a-bbee-02f9e1bf7b46"
# create a directory for saving creds -- ask first, to satisfy CRAN requirements
make_AzureR_dir <- function()
{
AzureR_dir <- AzureR_dir()
if(!dir.exists(AzureR_dir) && interactive())
{
yn <- readline(paste0(
"AzureRMR can cache Azure Resource Manager logins in the directory:\n\n",
AzureR_dir, "\n\n",
"This saves you having to re-authenticate with Azure in future sessions. Create this directory? (Y/n) "))
if(tolower(substr(yn, 1, 1)) == "n")
return(invisible(NULL))
dir.create(AzureR_dir, recursive=TRUE)
}
}