Skip to content

Commit

Permalink
url fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jun 12, 2015
1 parent 354520f commit 6ea6c38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions R/tpl_get.r
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#' Get The Plant List csv files.
#'
#' The Plant List \url{http://www.theplantlist.org/}. Note there is a package on
#' CRAN (taxonstand - \url{http://cran.r-project.org/web/packages/Taxonstand/})
#' that uses theplantlist.org to search plant names - we have a wrapper around
#' that function called tpl_search.
#' CRAN (Taxonstand) that uses theplantlist.org to search plant names - we have
#' a wrapper around that function called \code{tpl_search}
#'
#' @export
#' @param x Directory to write csv files to.
Expand All @@ -12,7 +11,7 @@
#' @details Throws a warning if you already have a directory of the one
#' provided, but still works. Writes to your home directory, change dir_ as needed.
#' @return Returns nothing to console, except a message and progress bar.
#' Writes csv files to dir_.
#' Writes csv files to x.
#' @author John Baumgartner (johnbb@@student.unimelb.edu.au)
#' @seealso \code{\link{tpl_search}} \code{\link{tpl_families}}
#' @examples \dontrun{
Expand Down
3 changes: 1 addition & 2 deletions inst/vign/taxize_vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ temp <- gnr_resolve(names = c("Helianthos annus", "Homo saapiens"))
head( temp$results )
```

The correct spellings are *Helianthus annuus* and *Homo sapiens*. Another approach uses the [Taxonomic Name Resolution Service via the Taxosaurus API][taxosaurus] developed by iPLant and the Phylotastic organization. In this example, we provide a list of species names, some of which are misspelled, and we'll call the API with the *tnrs* function.
The correct spellings are *Helianthus annuus* and *Homo sapiens*. Another approach uses the Taxonomic Name Resolution Service via the Taxosaurus API developed by iPLant and the Phylotastic organization. In this example, we provide a list of species names, some of which are misspelled, and we'll call the API with the *tnrs* function.

```{r tnrs, eval=TRUE, cache=FALSE}
mynames <- c("Helianthus annuus", "Pinus contort", "Poa anua", "Abis magnifica",
Expand Down Expand Up @@ -220,7 +220,6 @@ A_clas[[1]]$rank[tolower(A_clas[[1]]$name) %in% B3]
If we find a direct match (here *Gammarus roeseli*), we are lucky. But we can also match Gammaridae with *Gammarus roeseli*, but on a lower taxonomic level. A more comprehensive and realistic example (matching a trait table with an abundance table) is given in the vignette on matching.

[eol]: http://www.eol.org/
[taxosaurus]: http://api.phylotastic.org/tnrs
[ncbi]: http://www.ncbi.nlm.nih.gov/
[itis]: http://www.itis.gov/
[phylomatic]: http://phylodiversity.net/phylomatic/
Expand Down
5 changes: 2 additions & 3 deletions man/tpl_get.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ Writes csv files to dir_.
}
\description{
The Plant List \url{http://www.theplantlist.org/}. Note there is a package on
CRAN (taxonstand - \url{http://cran.r-project.org/web/packages/Taxonstand/})
that uses theplantlist.org to search plant names - we have a wrapper around
that function called tpl_search.
CRAN (Taxonstand) that uses theplantlist.org to search plant names - we have
a wrapper around that function called \code{tpl_search}
}
\details{
Throws a warning if you already have a directory of the one
Expand Down

0 comments on commit 6ea6c38

Please sign in to comment.