Fixed species_family to return latest db version #6
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.
species_family()
always returns the databasedb_2022_09.rds
stored ininst/extdata
, note the columns for species and genera from the last ten years. However, the printed text refers to the latest version (now 6 February 2024).The new code fixes this issue and returns the latest version by rearranging the html table in the same format as the stored database. I also added a new dependency,
tidyr
, and tidied the description file.Created on 2024-02-29 by the reprex package (v2.0.1)