Skip to contents

Download an asset

Usage

hb_download_file(client, url, dest, ..., overwrite = FALSE)

Arguments

client

A harbour_client.

url

Asset URL (as returned by SeaTable in a file/image cell).

dest

Destination path. Parent directories are created if needed.

...

These dots are for future extensions and must be empty.

overwrite

Refuse to clobber an existing file unless TRUE.

Value

Invisibly returns dest.

Examples

if (FALSE) { # interactive()
client <- hb_client()
hb_download_file(client, "https://...", tempfile())
}