Skip to contents

[Deprecated] Short hand to as.data.table(read_fst()). File extension can be omitted.

Usage

dt_fst(path_base, name = NULL, ext = ".fst")

Arguments

path_base

A character string, providing the path to read from.

name

A character string, the file name.

ext

A character string, optional, specifying the file extension.

Value

A data.table, read from path_base/(name).

Details

Output is a data.table. The function is deprecated, with the use of parquet tables. Tables can now be loaded IN-memory or OUT of memory with dt_parquet.

Examples


# Say you have a data.frame stored in an fst format, such as this one
df <- data.frame(a = 1:10)

path <- paste0(tempdir(), "/dtfstex")
dir.create(path)

fst::write_fst(x = df,
              path = paste0(path, "/", "df.fst")
              )
# Now you have a new session without df.
rm(df)

# You may import the file directly to data.table format with dt_fst
df <- dt_fst(path, "df")
#> Warning: `dt_fst()` was deprecated in vigicaen 0.12.0.
#>  Please use `dt_parquet()` instead.

# Clean up (required for CRAN checks)
unlink(path, recursive = TRUE)