Writes one .csv per table into dir. Subject to the same losses as
hb_write_xlsx(); see its documentation. Each file is named after its
table, with the characters a file name cannot hold on some system -
/ \ : * ? " < > | and control characters - replaced by _. Table
names that produce the same filename (ignoring case) are rejected
before any files are written.
See also
hb_write_xlsx(), hb_write_dtable()
Other dtable:
as_tibble.harbour_dtable(),
hb_asset_path(),
hb_dtable(),
hb_read_csv(),
hb_read_dtable(),
hb_read_xlsx(),
hb_validate_dtable(),
hb_write_dtable(),
hb_write_xlsx(),
is_harbour_dtable(),
length.harbour_dtable(),
names.harbour_dtable(),
print.harbour_dtable(),
summary.harbour_dtable()
Examples
base <- hb_read_dtable(
system.file("extdata", "example.dtable", package = "harbouR")
)
dir <- tempfile()
hb_write_csv(base, dir)
#> ! 7 columns were flattened to text.
#> • Samples$Tags, Samples$Collaborators, Samples$Photos, Samples$Reports,
#> Samples$Where, Samples$Action, and Samples$Signature
#> ℹ A spreadsheet cell holds one value. Use `hb_write_dtable()` to keep the
#> structure.
list.files(dir)
#> [1] "Reference.csv" "Samples.csv"
unlink(dir, recursive = TRUE)