зеркало из https://github.com/Azure/AzureRMR.git
don't create token dir, AzureAuth will handle that
This commit is contained in:
Родитель
5eeb60988a
Коммит
38e5aec46e
17
R/AzureRMR.R
17
R/AzureRMR.R
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче