commit_diff: Commit diff

View source: R/commit_diff.R

commit_diffR Documentation

Commit diff

Description

Write a diff to a versioned dataset destination. Check that it was written correctly, otherwise return an error.

Usage

commit_diff(diff_df, destination, verbose = FALSE)

Arguments

diff_df

a data frame. Output off diffdfs::diffdfs.

destination

a local directory path or an arrow SubTreeFileSystem

verbose

TRUE /FALSE should the function be chatty?

Value

TRUE

Examples

temp_dir <- tempfile()
dir.create(temp_dir, recursive = TRUE)
df <- data.frame(a = 1:5, b = letters[1:5])
new_df <- data.frame(a = 2:5, b = letters[2:5])
diff <- diffdfs::diffdfs(new_df, df)

commit_diff(diff, temp_dir)

unlink(temp_dir)


dataversionr documentation built on Aug. 18, 2022, 9:06 a.m.