R/AzureStor.R

Defines functions .onLoad

#' @import AzureRMR
#' @importFrom utils URLencode modifyList packageVersion glob2rx
NULL

globalVariables(c("self", "pool"), "AzureStor")

.AzureStor <- new.env()


.onLoad <- function(libname, pkgname)
{
    set_option <- function(name, value)
    {
        if(is.null(getOption(name)))
            options(structure(list(value), names=name))
    }

    set_option("azure_storage_api_version", "2021-06-08")
    set_option("azure_storage_progress_bar", TRUE)
    set_option("azure_storage_retries", 10)

    # all methods extending classes in external package must be run from .onLoad
    add_methods()
}

Try the AzureStor package in your browser

Any scripts or data that you put into this service are public.

AzureStor documentation built on May 25, 2022, 9:11 a.m.