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.
See also
Other dtable:
as_tibble.harbour_dtable(),
hb_dtable(),
hb_read_csv(),
hb_read_dtable(),
hb_read_xlsx(),
hb_validate_dtable(),
hb_write_csv(),
hb_write_dtable(),
hb_write_xlsx(),
is_harbour_dtable(),
length.harbour_dtable(),
names.harbour_dtable(),
print.harbour_dtable(),
summary.harbour_dtable()
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