adls: Create an adls object.

Description Usage Arguments Value See Also Examples

Description

All the functions you will use to access the Azure Data Lake Store will need to know where your data lake is, and how to get into it. Thus, the location and access information are stored in a single object you instantiate once, then use with each function call.

Usage

1
adls(base_url, token)

Arguments

base_url

character or url object made using httr::parse_url(), the base URL for the data lake store. It may be convenient to use adls_url() to make your URL.

token

Token2.0 reference-class (R6) object, httr::Token. It may be convenient to use AzureOAuth::oauth_token_azure() or AzureOAuth::oauth_service_token_azure() to obtain your token.

Value

An adls S3 object.

See Also

adls_url(), AzureOAuth::oauth_token_azure(), AzureOAuth::oauth_service_token_azure(),

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
  # create token (assumes Azure native app)
  token <- AzureOAuth::oauth_token_azure(
    tenant_id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    application_id = "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj",
    name = "foo"
  )

  # create adls object with base-URL and token
  adls_example <- adls(
    base_url = adls_url("bar"),
    token = token
  )

## End(Not run)

ijlyttle/AzureDatalakeStore documentation built on May 5, 2019, 5:56 p.m.