Extract specific files from a .twbx
Arguments
- twbx_path
Path to a
.twbx.- files
Vector of archive paths to extract (optional).
- pattern
Perl regex to match archive paths (optional).
- types
Subset by
.twbxentrytype(seetwbx_list()) (optional).- exdir
Output directory (defaults to temp).
Examples
twbx <- system.file("extdata", "test_for_zip.twbx", package = "twbparser")
files <- twbx_extract_files(twbx, types = c("workbook"))
head(files)
#> # A tibble: 1 × 3
#> name type out_path
#> <chr> <chr> <chr>
#> 1 test-for_zip.twb workbook /tmp/RtmpIzYFia/twbx_extract_20251112213740/test-fo…
