Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nationalparkservice/dpchecker
DPchecker (Data Package checker) is a package with a series of functions for NPS data package authors and reviewers to check for internal consistency among data/meta data and with the data package standards
https://github.com/nationalparkservice/dpchecker
datastore ecological-meta-data eml national-park-service nps r schema
Last synced: about 15 hours ago
JSON representation
DPchecker (Data Package checker) is a package with a series of functions for NPS data package authors and reviewers to check for internal consistency among data/meta data and with the data package standards
- Host: GitHub
- URL: https://github.com/nationalparkservice/dpchecker
- Owner: nationalparkservice
- License: other
- Created: 2022-09-07T13:46:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T22:23:43.000Z (3 days ago)
- Last Synced: 2024-11-05T23:27:12.788Z (3 days ago)
- Topics: datastore, ecological-meta-data, eml, national-park-service, nps, r, schema
- Language: R
- Homepage: https://nationalparkservice.github.io/DPchecker/
- Size: 5.38 MB
- Stars: 4
- Watchers: 9
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![CodeFactor](https://www.codefactor.io/repository/github/roblbaker/dpchecker/badge)](https://www.codefactor.io/repository/github/roblbaker/dpchecker)# DPchecker
#### v0.3.3
DPchecker (Data Package checker) is a package with a series of functions for NPS data package authors and reviewers to check for internal consistency among data/meta data and with the data package standards.
Currently, *only EML metadata and .csv data files* are supported. It is recommended that you store all data files and the single metadata file (filename must end in "metadata.xml") in the same directory.
Each function runs an single check and imports data or metadata as necessary. If you prefer to run all checks at once, you can use `run_congruence_checks()`.
## Installation
You can install the development version of DPchecker from
[GitHub](https://github.com/) with:``` r
# install.packages("devtools")
devtools::install_github("nationalparkservice/DPchecker")
```## Examples:
Run all checks at once:``` r
library(DPchecker)# Get the directory where example data is stored (alternately, replace this with the path to your data folder)
dir <- DPchecker_example("BICY_veg") # Use this to test things out with the included example data
# dir <- "C:/Users/yourusername/Documents/my_data_package" # The path to your data package should look something like this# Run all checks and summarize results
run_congruence_checks(dir)
# Alternately, if your data package is stored in the root of your R project folder, you don't need to pass any arguments
run_congruence_checks()
```Verify that file names and column names in the metadata match the data:
``` r
library(DPchecker)dir <- DPchecker_example("BICY_veg") # Use this to test things out with the included example data
# dir <- "C:/Users/yourusername/Documents/my_data_package" # The path to your data package should look something like thistest_file_name_match(dir)
test_fields_match(dir)
```