Utility functions to assist working with git_prov. Each of these reassigns the original function to a new function in the provRmd namespace. The new function just adds an automatic call to git_prov() when appropriate.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | source(source_fn, ..., nogit = FALSE, not_tracked = FALSE)
read.csv(file, stringsAsFactors = FALSE, nogit = FALSE,
not_tracked = FALSE, ...)
write.csv(x, file, row.names = FALSE, nogit = FALSE,
not_tracked = FALSE, ...)
read_csv(file, nogit = FALSE, not_tracked = FALSE, ...)
write_csv(x, path, nogit = FALSE, not_tracked = FALSE, ...)
readOGR(dsn, layer, stringsAsFactors = FALSE, nogit = FALSE,
not_tracked = FALSE, ...)
writeOGR(obj, dsn, layer, driver = "ESRI Shapefile", nogit = FALSE,
not_tracked = FALSE, ...)
readShapePoly(fn, nogit = FALSE, not_tracked = FALSE, ...)
writePolyShape(x, fn, nogit = FALSE, not_tracked = FALSE, ...)
raster(x, nogit = FALSE, not_tracked = FALSE, ...)
brick(x, nogit = FALSE, not_tracked = FALSE, ...)
stack(x, nogit = FALSE, not_tracked = FALSE, ...)
writeRaster(x, filename, bylayer = FALSE, nogit = FALSE,
not_tracked = FALSE, ...)
gdal_rasterize(src_datasource, dst_filename, ..., nogit = FALSE,
not_tracked = FALSE)
rasterize(x, y, filename = "", nogit = FALSE, not_tracked = FALSE,
...)
ggsave(filename, ..., nogit = FALSE, not_tracked = FALSE)
|
To override these functions, use the double-colon notation (e.g. utils::write.csv() or readr::read_csv()) to call the function directly from the original package; alternately, add an argument of nogit = TRUE to suppress the git_prov() call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.