Description Usage Arguments Value See Also Examples
Append to a file.
1 | adls_append(adls, file, path)
|
adls |
|
file |
|
path |
|
A logical
indicating success of the operation.
WebHDFS documentation for "Append to a File"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ## 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
)
# for this example, write a temporary file
temp_file <- tempfile(fileext = ".csv")
write.csv(iris, file = temp_file)
# upload file
adls_create(
adls_example,
file = httr::file_upload(temp_file),
path = "iris.csv"
)
# append with another copy of iris.csv
adls_append(
adls_example,
file = httr::file_upload(temp_file),
path = "iris.csv"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.