eppo_citation
returns citation of EPPO resources inbibtex
format.
- update
README
, correct typos, styling, add comments, etc.
- new hex sticker
create_eppo_token
it does not createGlobal variable
now. Instead user needs to assign it to a variable manually. This is also corrected in tests, vignettes and documentation.eppo_tabletools_taxo
now correctly handles eppocodes with correct structure, but otherwise invalid. I.e. It returnsNA
when the eppocode is not in the EPPO Data Services instead of breaking.
null_eppocodes
function checks if provided vector of eppocodes is empty, and returnsNULL
if needed. Function is tested.
eppo_tabletools_
family functions now correctly handle results ofeppo_names_table
, when there are no valid eppocodes.- refactor and adjust
eppo_database_download
fail gracefully. - corrected typos in documentation
- updated
petr workflow
vignette. - updated
Example workflow of checking taxons affecting Abies alba
vignette.
eppo_tabletools
functions now can use "raw" eppocodes instead of result ofeppo_names_tables
function result to query EPPO Data Services and EPPO Global Database. New functionality works withraw_eppocodes
and 'use_raw_codes` parameters.msg_helpers
small wrapper over messages to reduce redundancy in code.
- updated documentation of functions, including examples, typos, etc. (#11)
- added "devel" on Ubuntu 18.04 to github actions.
- removed
stringr
andDT
from Suggested dependencies as the are no longer in need.
- updated sample database (on 2020-Jan-06).(#19)
- updated
eppo_tabletools_hosts
test including changes in function behavior. - if
eppo_token
is incorrect, functions return invisibleNULL
.(#18)
- Updated description of usage in README.
- Changed license to MIT.
eppo_tabletools_hosts
andeppo_tabletools_pests
now include row with eppocode for which there is no data.
check_eppo_token
allows checking ifeppo_token
is correctly recognized by EPPO Data Services API.(#18)try_GET
andeppo_try_urls
helper wrappers to fail gracefully. (#18)- Updated
eppo_json_wrapper
andeppo_csv_download
helpers to fail gracefully.(#18)
- Updated tests include mocking to support testing on CI and CRAN without using token, or connect to EPPO API, or download csv files.
- EPPO REST responses are stored in RDS, so they can be mocked while testing if the creation of tables works correctly.(#19)
- Now test are only checking if it
inherits
frompestr_token
class. - mocked files and SQLite db is up to date on 04-Jan-2020.(#19)
- Added tests for
eppo_tabletools_pests
.
- Vignette showing how to use output of
eppo_tabletools_pests()
to check taxonomy of pest infecting Abies alba. (#8)
- Encrypted token for tests is no longer needed for all functions besides API helper since functions are mocked. (#12)
- Updated sample database.
- Updated
tidyr::nest
and dplyr functions arguments. (#20 #16) - Deleted
dplyr
package from imports. Package now only uses::
to access dplyr functions. - Deleted
pryr
for dependencies at it was only used to check ifeppo_token
isS3
class. - Deleted
RCurl
from dependencies since now package relies onhttr
andcurl
to connect with REST API, download csv files or download SQLite database. - All test now use correct syntax to load packages (e.g.
library('dplyr')
instead oflibrary(dplyr)
). - Added hex sticker.
- Added
lifcycle badges
- new function
eppo_tabletools_pests
returning pests of hosts.
eppo_tabletools_pests
needs testing.
- updated comment in
eppo_names_table
- deleted unused dependency from vignette
- added condition to download db file only if one does not exist in
eppo_database_download
Added pestr Workflow vignette with example usage of pestr package functions -- fix (#8).
Added some formatting to NEWS.md
Corrected table name in eppo_tabletools_host
function.
eppo_tabletools_host
-- some small fixes in code and now returns table
with NA, when there is no record in DB.
eppo_tabletools_hosts
correctly joins hosts names with their classes.
eppo_tabletools_distri
correctly joins countries with continents, without
repeating names of some countries (e.g. USA, China).
eppo_table_full
-- joins compact results ofeppo_names_tables()
andeppo_tabletools
into one compact table.
eppo_tabletools_distri
-- takes result ofeppo_names_tables()
and creates table with distribution of pests (continent and country level).
eppo_tabletools_cat()
-- takes result ofeppo_names_tables()
and creates table with categorization of each pest.
Fixed bug in eppo_tabletools_hosts()
function. Now it returns correct values,
in compact table.
eppo_tabletools_cat()
-- takes result ofeppo_names_tables()
and creates table with categorization of each pest.
eppo_tabletools_hosts()
-- takes result ofeppo_names_tables()
and creates table with hosts of each pest.
create_eppo_token()
-- stores EPPO token for further use;eppo_database_check()
-- checks if EPPO SQLite db exist in folder;eppo_database_connect()
-- connects to EPPO SQLite db;eppo_database_download()
-- downloads EPPO SQLite db from EPPO Data Services;eppo_names_tables()
-- checks if names in query exist in EPPO SQLite db and uses them to create table with preferred and non-preferred names, synonyms, and common names in other languages;eppo_tabletools_names()
-- takes result ofeppo_names_tables()
and creates table with proper formatting (names etc.) on long or condensed format;
- Unify table outputs (#17)
- Encrypt EPPO API token so test could run also on TravisCI (#12) FIXED
- Code comments (#11)
- Documentation (#10)
- Additional tests (?) (#9)
- Test for
eppo_tabletools_taxo
breaks -- function does not return correct values (namely table has only one row with NA) for compact table, however when run manually everything is O.K. (#9) -- Probably updating sample SQLite db for test will solve above issue FIXED - Add new list item - tables formatted in the same way as they are formatted in EPPO template (#7)
- Internationalization of package (#5) and (#6)
- Hosts and categorization paste some values double into string, small fix is needed for both test and function FIXED
taxize
package can be helpful with correction of organism names.