ropensci / unconf14

Repo to brainstorm ideas (unconference style) for the rOpenSci hackathon.
28 stars 3 forks source link

testdat #28

Open karthik opened 10 years ago

karthik commented 10 years ago

Hi folks, I started a package recently called testdat, a play on @hadley's testthat. Since most people in the sciences really just work with small datasets, small messy datasets, especially ones read back from old databases and legacy software. I figured it might be a useful idea to have a small test suite for tabular data to make sure of things like:

Then people can load up data, run testdat(data) and have the local browser render a diagnostic report. It's an issue many researchers have told me about and I thought it might be a useful lightweight tool. I'd love for anyone to join in on this or offer thoughts/alternatives.

max-mapper commented 10 years ago

I recently did something similar for CSVs: https://github.com/maxogden/csv-spectrum It also can be require()'d and used in test suites, e.g. https://github.com/maxogden/binary-csv/blob/master/test/test.js