Closed zachary-foster closed 6 years ago
Merging #107 into master will decrease coverage by
0.14%
. The diff coverage is0%
.
@@ Coverage Diff @@
## master #107 +/- ##
=========================================
- Coverage 24.04% 23.9% -0.15%
=========================================
Files 17 17
Lines 682 686 +4
=========================================
Hits 164 164
- Misses 518 522 +4
Impacted Files | Coverage Δ | |
---|---|---|
R/ncbi_searcher.R | 0% <0%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 089094a...1b0a7ba. Read the comment docs.
looks good to me
Description
I was getting the following error with the current github and CRAN versions:
It was caused by an error being returned from the NCBI API instead of taxonomic information at this line:
https://github.com/ropensci/traits/blob/089094a07ba5722fbca964c99c618b13f7d68204/R/ncbi_searcher.R#L226
I am not sure why the error was occurring, but I changed the code so it returns
NA
in that case instead of failing.Example