Skip to contents

Attachment cells in an export point at file://dtable-bundle/asset/.... When the base was read with assets = "extract", this gives the path the file was extracted to.

Usage

hb_asset_path(x, url, ...)

Arguments

x

A harbour_dtable read with assets = "extract".

url

An asset URL taken from a file or image cell.

...

These dots are for future extensions and must be empty.

Value

A single path, or NA_character_ if the asset is not bundled.

Examples

path <- system.file("extdata", "example.dtable", package = "harbouR")
base <- hb_read_dtable(path, assets = "extract")
hb_asset_path(base, "file://dtable-bundle/asset/files/readme.txt")
#> [1] NA