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. The URL may be escaped, as SeaTable's export writes it - my%20report%20%281%29.txt for my report (1).txt.

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/2026-07/readme.txt")
#> [1] "/tmp/Rtmpd5t5Vq/harbour-assets-18866f8d96/asset/files/2026-07/readme.txt"