Description Usage Arguments Value Examples
Check if a file exists
1 2 | file_exists(path, data_source = flyio_get_datasource(),
bucket = flyio_get_bucket(data_source))
|
path |
the entire path for the file |
data_source |
the name of the data source, if not set globally. s3, gsc or local |
bucket |
the name of the bucket, if not set globally |
logical. if the file exists or not
1 2 3 4 5 6 7 8 9 | # Check with data source local
file_exists(path = "tests/mtcars.csv", data_source = "local")
## Not run:
# Check with data source GCS
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
file_exists(path = "tests/mtcars.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.