set_azure_options: read azure defaults from the environment to set package...

Description Usage Arguments Details Value

View source: R/azure_setup.R

Description

call this function prior to using any of the functions in this library this perhaps should be called when the package loads and/or at beginning of most of the functions usage stopifnot(set_azure_options()) ... your code to work with azure

Usage

1
2
3
4
5
6
7
8
9
set_azure_options(
  azuresub = NULL,
  azurerg = NULL,
  azureuser = NULL,
  azurestor = NULL,
  azurecontainer = NULL,
  storageaccesskey = NULL,
  verbose = FALSE
)

Arguments

azuresub

the azure subscription ID of the user

azurerg

the name of the resource group to be used

azureuser

the azure username of the user

azurestor

the name of the storage account to be used

azurecontainer

the name of the storage container to be used

storageaccesskey

the storage access key for the storage account to be used, found in the portal under "Access keys" in the storage account menu

verbose

TRUE/FALSE run in verbose mode.

Details

The parameters can be explicitly set using this function otherwise the values set in the .Renviron file will be used.

If the values in Renviron, or sent as params are not valid, the options are not set

Value

T/F depending on if az is setup and works.


billspat/bayesrun documentation built on March 20, 2021, 11:15 p.m.