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

Add reference to RefManageR::WriteBib to traits.build tutorials #24

Open
bmedlyn opened this issue Jan 2, 2025 · 3 comments
Open

Add reference to RefManageR::WriteBib to traits.build tutorials #24

bmedlyn opened this issue Jan 2, 2025 · 3 comments
Assignees

Comments

@bmedlyn
Copy link

bmedlyn commented Jan 2, 2025

It may be there already, but I couldn't find it in the help.

A function to generate the citation for a particular trait value. For example I can see all the plant_tolerance_water_logged_soils values come from White_2020 but I couldn't figure out how to find the full citation for this reference. Something like
citation("White_2020") would be ideal

@ehwenk
Copy link
Contributor

ehwenk commented Jan 14, 2025

@bmedlyn Thanks for this suggestion.

A quick way to generate a list of citations for the data is to use

austraits$methods %>%
  distinct(source_primary_citation)

Note, if you use the "extract_data" function to extract the datasets/traits you want, then the database retains its traits.build format and the methods dataframe still exists.

But we can also see that it would be very useful to generate a bibtex file of citations from a subsetted database and @fontikar is going to develop an austraits function generate_citation_bibtex that will generate a bibtex file that can be downloaded to merge into citation managers.

@ehwenk
Copy link
Contributor

ehwenk commented Jan 14, 2025

@bmedlyn - Fonti and I have just been looking through options and if you run RefManageR::WriteBib on your subsetted database it will create a BibTex file of references that can be opened in reference managers:

This defaults to being stored in the base directory you're in.

austraits %>% extract_dataset(c("Falster", "Wright", "Westoby", "White")) -> austraits_subset
RefManageR::WriteBib(austraits_subset$sources)

@ehwenk
Copy link
Contributor

ehwenk commented Jan 14, 2025

Instead of adding a new function to austraits, we'll add this to our tutorial files in traits.build/book. Moving the issue there now.

@ehwenk ehwenk transferred this issue from traitecoevo/austraits Jan 14, 2025
@ehwenk ehwenk changed the title Add citation generation function Add reference to RefManageR::WriteBib to traits.build tutorials Jan 14, 2025
@ehwenk ehwenk assigned ehwenk and unassigned fontikar Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants