Skip to content

Commit

Permalink
liverworts and hornworts
Browse files Browse the repository at this point in the history
  • Loading branch information
wcornwell committed May 27, 2015
1 parent b276870 commit 24c1fb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: taxonlookup
Title: A dynamically-updating versioned taxonomic resource for vascular plants
Version: 0.2.0
Version: 0.2.2
Description: This is a taxon lookup table for land plants. It is built from a set of scripts that dynamically build a versioned genus-family-order-higher taxa lookup table from canonical sources on the web. It uses semantic versioning to keep track of changes.
Depends: R (>= 3.1.0)
License: BSD_2_clause + file LICENSE
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ Download the package and rerun the build script. We'll work this way as we add
# Notes for making a release using this *living dataset* design

* Update the `DESCRIPTION` file to increase the version number. Once we hit version 1, we use [semantic versioning](http://semver.org/) so be aware of when to change what number. Assume it's `1.2.3` for the rest of instructions.
<!---
* Update known versions in `plant_lookup_versions` (eventually we'll do this with the github api but that will introduce a httr and jsonlite dependency)
-->
* Run `remake::make()` to rebuild `plant_lookup.csv`
* Commit and push to github
* In github, create a new release [link](https://github.com/wcornwell/TaxonLookup/releases/new)
Expand Down
3 changes: 2 additions & 1 deletion createlookup.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ matchPlantListFamiliesToApweb<-function(tplGenera){
tplGenera$family[tplGenera$family=="Apleniaceae"]<-"Aspleniaceae"
tplGenera$order<-apFamilies$order[match(tplGenera$family,apFamilies$acceptedFamilies)]
tplGenera$order[is.na(tplGenera$order)]<-apFamilies$order[match(tplGenera$family,apFamilies$family)[is.na(tplGenera$order)]]
tplGenera$order[tplGenera$group=="Bryophytes"]<-"undetermined_moss_order"
tplGenera$order[tplGenera$group=="Bryophytes"]<-"non_sphagnopsid_moss_order"
tplGenera$order[tplGenera$family=="Sphagnaceae"]<-"sphagnopsid_moss_order"
tplGenera$order[tplGenera$family %in% c("Leiosporocerotaceae", "Anthocerotaceae", "Notothyladaceae","Phymatocerotaceae","Dendrocerotaceae")]<-"undetermined_hornwort_order"
tplGenera$order[tplGenera$family %in% read.delim("source_data/liverwortFamilies.txt",header=FALSE)$V1]<-"undetermined_liverwort_order"
return(tplGenera)
Expand Down

0 comments on commit 24c1fb7

Please sign in to comment.