-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated documentation and website for austraits 3.0.0 (#130)
* Update README.Rmd * Returning tibble for flatten_database * Minor updates to dependnencies to pass R CMD check Remove reference to `summarise_trait_means` * Extract_data missing S3 class assign * Updated bootswatch --------- Co-authored-by: ehwenk <[email protected]>
- Loading branch information
Showing
25 changed files
with
942 additions
and
7,699 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ doc/*.html | |
# R Environment Variables | ||
.Renviron | ||
inst/doc | ||
inst/cheatsheet/ | ||
/doc/ | ||
/docs/ | ||
/Meta/ | ||
|
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
# austraits <img src="man/figures/austraits_hex.png" align="right" width="120"/> | ||
# austraits <img src="man/figures/austraits_hex.png" align="right" alt="" width="120" /> | ||
|
||
<!-- badges: start --> | ||
|
||
[![R-CMD-check](https://github.com/traitecoevo/austraits/actions/workflows/R-CMD-check.yml/badge.svg)](https://github.com/traitecoevo/austraits/actions/workflows/R-CMD-check.yml) | ||
[![codecov](https://codecov.io/gh/traitecoevo/austraits/branch/master/graph/badge.svg?token=JT1M0AMZ44)](https://codecov.io/gh/traitecoevo/austraits) | ||
[![](https://img.shields.io/badge/doi-10.1038/s41597--021--01006--6-blue.svg)](https://doi.org/10.1038/s41597-021-01006-6) | ||
[![](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable) | ||
|
||
[![Codecov test | ||
coverage](https://codecov.io/gh/traitecoevo/austraits/branch/master/graph/badge.svg)](https://app.codecov.io/gh/traitecoevo/austraits?branch=master) | ||
<!-- badges: end --> | ||
|
||
`austraits` allow users to access, explore and wrangle data from the | ||
AusTraits database in `R`. This package includes several functions such | ||
as filtering and pivoting the dataset that we expect will come in handy. | ||
|
||
**For R users**, access and manipulation of the data is assisted with | ||
the `austraits` package | ||
|
||
**For Python or other users**, the [Zenodo | ||
download](https://zenodo.org/record/5112001#collapseTwo) includes a .zip | ||
file containing all the data in plain text (.csv files) and associated | ||
meta-data | ||
`austraits` allow users to **access, explore and wrangle data** from | ||
[traits.build](https://github.com/traitecoevo/traits.build) relational | ||
databases. It is also an R interface to | ||
[AusTraits](https://austraits.org/), the Australian plant trait | ||
database. This package contains functions for joining data from various | ||
tables, filtering to specific records, combining multiple databases and | ||
visualising the distribution of the data. We expect this package will | ||
assist users in working with `traits.build` databases. | ||
|
||
### Installation | ||
|
||
The package is not on CRAN yet and is still under active development. | ||
This package is not on CRAN yet and is still under active development. | ||
For the current stable release of `austraits`, which has full | ||
capabilities of the functions used in vignettes (e.g. plotting | ||
functions), use: | ||
|
@@ -37,27 +36,60 @@ remotes::install_github("traitecoevo/austraits", dependencies = TRUE, upgrade = | |
library(austraits) | ||
``` | ||
|
||
Otherwise, for a lightweight installation where dependencies for | ||
plotting and the vignettes will not be installed, use: | ||
For a lightweight installation where dependencies for plotting and | ||
producing the vignettes will not be installed, use: | ||
|
||
``` r | ||
remotes::install_github("traitecoevo/austraits", upgrade = "ask") | ||
``` | ||
|
||
### Take a good look at our vignettes! 👀 | ||
### Details for AusTraits users | ||
|
||
#### Retrieve AusTraits data | ||
|
||
- **For R users**, the AusTraits database can be accessed through the | ||
`austraits` package using `load_austraits()` | ||
|
||
- **For Python or other users**, the [Zenodo | ||
download](https://zenodo.org/record/5112001#collapseTwo) includes a | ||
`.zip` file containing all the data in plain text (`.csv` files) and | ||
associated meta-data | ||
|
||
In our website, we have also included information about the [structure | ||
of the | ||
database](https://traitecoevo.github.io/austraits/articles/structure.html), | ||
[definitions of the | ||
traits](https://traitecoevo.github.io/austraits/articles/dictionary.html) | ||
and some | ||
[tutorials](https://traitecoevo.github.io/austraits/articles/austraits.html) | ||
that uses our functions as well as some `tidyverse` functions to create | ||
some commonly used data output formats. We highly recommend starting | ||
here before jumping into the database! | ||
#### Backwards compatibility with past AusTraits versions | ||
|
||
From September 2024, `austraits` functions were revamped to support all | ||
[traits.build](https://github.com/traitecoevo/traits.build) compiled | ||
databases, rather than being linked to | ||
[austraits.build](https://github.com/traitecoevo/austraits.build). | ||
|
||
Versions of `austraits.build` (the AusTraits plant trait database) **\< | ||
5.0 are no longer supported** by the latest version of the package. If | ||
you are working with an older version of AusTraits, please install an | ||
older version of austraits: | ||
|
||
For `austraits.build` versions 4.2 and older: | ||
|
||
``` r | ||
#install.packages("remotes") | ||
remotes::install_github("traitecoevo/[email protected]", dependencies = TRUE, upgrade = "ask") | ||
|
||
If you prefer to view the vignettes in R, we recommend installing the | ||
library(austraits) | ||
``` | ||
|
||
Note, if you are unsure what version of AusTraits you are working with, | ||
run: | ||
|
||
``` r | ||
austraits$build_info$version | ||
``` | ||
|
||
### Getting started 👀 | ||
|
||
We highly recommend taking a look at our [Getting Started | ||
tutorial](https://traitecoevo.github.io/austraits/) on our website | ||
before jumping into the `austraits` R package! | ||
|
||
If you prefer to view this vignette in R, we recommend installing the | ||
package with `build_vignettes = TRUE`. | ||
|
||
``` r | ||
|
@@ -68,13 +100,21 @@ remotes::install_github("traitecoevo/austraits", | |
vignette("austraits") | ||
``` | ||
|
||
### Learn more about AusTraits | ||
|
||
AusTraits is a relational database, you can learn more about it’s | ||
structure from the [traits.build | ||
book](https://traitecoevo.github.io/traits.build-book/AusTraits_tutorial.html). | ||
|
||
You can also learn about the definitions of each plant trait with the | ||
[AusTraits Plant Dictionary!](https://w3id.org/APD) | ||
|
||
### Show us some support 💚 | ||
|
||
Please consider citing `austraits`, we would super appreciate it! | ||
|
||
``` r | ||
citation("austraits") | ||
#> | ||
#> To cite austraits in publications use: | ||
#> | ||
#> Falster, D., Gallagher, R., Wenk, E.H. et al. AusTraits, a curated | ||
|
@@ -98,8 +138,9 @@ citation("austraits") | |
### Behind the scenes 🔧 | ||
|
||
Check out | ||
[austraits.build](http://traitecoevo.github.io/austraits.build/), if you | ||
are interested in how AusTraits the database is managed and created | ||
[austraits.build](https://github.com/traitecoevo/austraits.build?tab=readme-ov-file), | ||
if you are interested in how AusTraits the database is managed and | ||
created | ||
|
||
### Find a bug? 🐛 | ||
|
||
|
Oops, something went wrong.