data_path: Represents a path to data in a datastore.

Description Usage Arguments Value Examples See Also

View source: R/datasets.R

Description

The path represented by DataPath object can point to a directory or a data artifact (blob, file).

Usage

1
data_path(datastore, path_on_datastore = NULL, name = NULL)

Arguments

datastore

The Datastore to reference.

path_on_datastore

The relative path in the backing storage for the data reference.

name

An optional name for the DataPath.

Value

The DataPath object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
my_data <- register_azure_blob_container_datastore(
    workspace = ws,
    datastore_name = blob_datastore_name,
    container_name = ws_blob_datastore$container_name,
    account_name = ws_blob_datastore$account_name,
    account_key = ws_blob_datastore$account_key,
    create_if_not_exists = TRUE)

datapath <- data_path(my_data, <path_on_my_datastore>)
dataset <- create_file_dataset_from_files(datapath)

See Also

create_file_dataset_from_files create_tabular_dataset_from_parquet_files create_tabular_dataset_from_delimited_files create_tabular_dataset_from_json_lines_files create_tabular_dataset_from_sql_query


azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.