Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build-warnings and other issues #44

Merged
merged 30 commits into from
Nov 27, 2018
Merged

Fix build-warnings and other issues #44

merged 30 commits into from
Nov 27, 2018

Conversation

patrickbarks
Copy link
Collaborator

Fixes all the build warnings. Apart from those updates, I've made some additional changes:

Removed coercion to CompadreDB class from all fns except convertLegacyDB and fetchDB
Functions now fail if db not CompadreDB class, and direct users to convertLegacyDB. The conversion is fairly time-consuming, so I think it's preferable to encourage users to incorporate a single conversion into their workflow, rather than potentially many somewhat-hidden conversions within other functions.

Removed subsetDB and updated dependent fns accordingly
We now have methods for [ and subset, which that I think are preferable.

Cut version time-stamp updates from [ and mergeDBs
They don't improve reproducibility, and there are other ways that users could modify a db without getting a time-stamp, so getting time-stamps only during select operations is potentially confusing.

Updated and restructured CompadreDB documentation
Documented slot names and all method params, and split CompadreDB code and documentation into three files: CompadreDB.R (class and accessors), CompadreDB-Subsetting.R ([ and subset methods and examples), and CompadreDB-Methods.R (other methods such as head, names, as.data.frame, merge, etc.). Not sure this is the best way to organize, but there are so many methods that I think they should be split somehow, to make the documentation easier to follow.

Other changes:

…dom mats from each); will eventually replace with @levisc8's code to get more balanced subsamples
…s.data.frame and head to prevent build warnings, and strip out species/study/matrix counts within asCompadreDB()
…erwise), remove version time-stamp, and remove post-merge tests (these can be added to package tests)
…onversion of legacy dbs (direct to convertLegacyDB), simplify code with helper fns, and change functionality to return mean mats for ALL populations (even if from only a single matrix)
…rnings, and move subset methods to separate file and doc
…e sapply to vapply, and remove auto-conversion of legacy dbs (direct to convertLegacyDB)
…asCompadreDB (strip out species/study/matrix counts from version)
…ples, and change appveyor and travis links in README to branch devel
…essors) and CompadreDB-Methods (other methods)
@jonesor
Copy link
Owner

jonesor commented Nov 27, 2018

Fantastic work there @patrickbarks!
Merging this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants