inbo / n2khab

R package with preprocessing functions and standard reference data for Flemish Natura 2000 (N2K) habitat (HAB) analyses
https://inbo.github.io/n2khab
GNU General Public License v3.0
2 stars 1 forks source link

Decouple text-based data source versions from package version #183

Open florisvdh opened 6 months ago

florisvdh commented 6 months ago

While text-based data sources, given their tiny size, fit well in a package and a git repo, they do evolve, and this does not blend in well with evolving functionality of the {n2khab} package. An example is the change brought about by PR https://github.com/inbo/n2khab/pull/182.

Much like the management of the binary data sources, the vc-formatted data sources that are returned in R by {n2khab} will better be managed as a frictionless data package in Zenodo (types, env_pressures, namelist); keeping them together as one Zenodo data source since the (multilingual) namelist is common between types and env_pressures. (When considering tsv-files created with git2rdata::write_vc() in this context, see here and here.)

In this way {n2khab} can support multiple versions of these text-based data sources, much in the same way as for other data sources. Furthermore, version interdependency between data sources should then be imposed since a specific version of a (binary) data source works with a specific version range of the text-based data sources, but not all of them.