The git2rdata package is an R package for writing and reading dataframes as plain text files. A metadata file stores important information. 1) Storing metadata allows to maintain the classes of variables. By default, git2rdata optimizes the data for file storage. The optimization is most effective on data containing factors. The optimization makes the data less human readable. The user can turn this off when they prefer a human readable format over smaller files. Details on the implementation are available in vignette("plain_text", package = "git2rdata"). 2) Storing metadata also allows smaller row based diffs between two consecutive commits. This is a useful feature when storing data as plain text files under version control. Details on this part of the implementation are available in vignette("version_control", package = "git2rdata"). Although we envisioned git2rdata with a git workflow in mind, you can use it in combination with other version control systems like subversion or mercurial. 3) git2rdata is a useful tool in a reproducible and traceable workflow. vignette("workflow", package = "git2rdata") gives a toy example. 4) vignette("efficiency", package = "git2rdata") provides some insight into the efficiency of file storage, git repository size and speed for writing and reading.
Package details |
|
---|---|
Author | Thierry Onkelinx [aut, cre] (<https://orcid.org/0000-0001-8804-4216>), Floris Vanderhaeghe [ctb] (<https://orcid.org/0000-0002-6378-6229>), Peter Desmet [ctb] (<https://orcid.org/0000-0002-8442-8025>), Els Lommelen [ctb] (<https://orcid.org/0000-0002-3481-5684>), Research Institute for Nature and Forest [cph, fnd] |
Maintainer | Thierry Onkelinx <thierry.onkelinx@inbo.be> |
License | GPL-3 |
Version | 0.4.0 |
URL | https://ropensci.github.io/git2rdata/ https://github.com/ropensci/git2rdata/ |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.