Learn R Programming

dataversionr (version 0.9.0)

get_latest: Get latest

Description

Read in the latest version of a versioned dataset to a data frame

Usage

get_latest(destination, collect = TRUE)

Value

a data frame or an arrow dataset

Arguments

destination

a local directory path or an arrow SubTreeFileSystem

collect

should we return a data frame (TRUE) or an arrow dataset connection (FALSE)

Examples

Run this code
temp_dir <- tempfile()
dir.create(temp_dir, recursive = TRUE)
df <- data.frame(a = 1:5, b = letters[1:5])
put_latest(df, temp_dir)

get_latest(temp_dir)

unlink(temp_dir)

Run the code above in your browser using DataLab