commit_diff | R Documentation |
Write a diff to a versioned dataset destination. Check that it was written correctly, otherwise return an error.
commit_diff(diff_df, destination, verbose = FALSE)
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? |
TRUE
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.