ropensci / rfishbase
Showing 1 of 1 files from the diff.

@@ -83,13 +83,15 @@
Loading
83 83
  rx <- "^[sS]ynonym$|^accepted name$"
84 84
  tmp <- data.frame(synonym  = species_list, stringsAsFactors = FALSE)
85 85
  synonyms(species_list, server = server, version = version, db = db) %>%
86 -
    collect() %>%
87 -
    mutate(Species = ifelse(grepl(rx, Status), Species, NA)) %>%
86 +
    dplyr::collect() %>%
87 +
    dplyr::mutate(Species = ifelse(grepl(rx, Status), Species, NA)) %>%
88 88
    # group by input taxon, remove NAs
89 89
    dplyr::group_by(synonym) %>%
90 90
    dplyr::filter(!is.na(Species)) %>%
91 91
    dplyr::ungroup() %>%
92 -
    dplyr::select(synonym, Species) %>% unique %>%
93 -
    right_join(tmp, by = "synonym") %>%
94 -
    pull(Species)
92 +
    dplyr::select(synonym, Species) %>% 
93 +
    dplyr::distinct() %>%
94 +
    # left_join to tmp to preserve species order from tmp
95 +
    dplyr::left_join(x = tmp, y = ., by = "synonym") %>% 
96 +
    dplyr::pull(Species)
95 97
}
Files Coverage
R 83.18%
Project Totals (14 files) 83.18%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 3%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 3%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading