dfalster / dataMashR

Code for merging data from different studies in a transparent way
Other
3 stars 2 forks source link

Function to check setup of package #1

Open dfalster opened 11 years ago

dfalster commented 11 years ago

Want a function which checks each directory in data and returns TRUE if passes all the tests, checking that all the right parts are there.

Then embed this within getStudyNames --> returns a list of directories that pass all the tests. These dirs are then loaded and built. Make an option to test=FALSE (for getStudyNames, default=FALSE).

Config files

lookupVariable,lookupValue,newVariable,newValue,source
species,Cedrela odorata,family,Meliaceae,
species,Tabebuia rosea,family,Bignonaceae,

would fail if species contains NA in the data

studyContact

dfalster commented 10 years ago

Diego keen to try this, to develop skills writing tests. Suggest that before writing code, scope the problem more, make lists of possible things, review with Rich and Dan, then start coding.

dfalster commented 10 years ago

Hi Diego,

List looks very good. I added one for variable conversions: test each against known result Let's meet tomorrow at 9:30.

DF

dfalster commented 10 years ago

Need to check functionality of functions too. Move to final test coming after others.