-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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)
…kage, and remove dontrun{} tags
…l of automatic asCompadreDB conversion
…ples, and change appveyor and travis links in README to branch devel
…essors) and CompadreDB-Methods (other methods)
…R (doc CompadreDB-Subsetting)
Fantastic work there @patrickbarks! |
This was referenced Nov 27, 2018
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
andfetchDB
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 accordinglyWe now have methods for
[
andsubset
, which that I think are preferable.Cut version time-stamp updates from
[
andmergeDBs
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 (
[
andsubset
methods and examples), and CompadreDB-Methods.R (other methods such ashead
,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:
cleanDB
(closes Add check_singular_U flag to cleanDB #30)fetchDB
fn to fetch db from web or local file (closes Add fetchDB function? #31)asCompadreDB
conversion (closes Cut species/study/matrix counts from db@version #42)