ropensci / rfishbase
Showing 2 of 4 files from the diff.

@@ -15,16 +15,11 @@
Loading
15 15
                       server = getOption("FISHBASE_API", "fishbase"), 
16 16
                       version = get_latest_release(),
17 17
                       db = default_db(), ...){
18 -
  if(!is.null(codes))
19 -
   out <- left_join(data.frame(RefNo = codes), fb_tbl("refrens", server, version, db))
20 -
  
21 -
  else
22 -
    return(fb_tbl("refrens", server, version, db))
23 -
  
24 -
  if(!is.null(fields))
25 -
     out <- out[fields]
26 -
  
27 -
  out
18 +
    out <- fb_tbl("refrens", server, version, db)
19 +
    if(!is.null(codes)) out <- dplyr::filter(out, .data$RefNo %in% codes)
20 +
    out <- dplyr::collect(out)
21 +
    if(!is.null(fields)) out <- out[fields]
22 +
    out
28 23
}
29 24
30 25
# make_citation <- function(x) {

@@ -1,7 +1,7 @@
Loading
1 1
2 2
## Allows us to define functions for each endpoint using closures
3 3
#' @importFrom dplyr left_join rename sym
4 -
#' @importFrom rlang !!
4 +
#' @importFrom rlang !! .data
5 5
endpoint <- function(endpt, join = NULL, by = NULL){
6 6
  
7 7
  function(species_list = NULL, 
@@ -111,4 +111,4 @@
Loading
111 111
112 112
113 113
tmp_tablename <- function(n=10)
114 -
  paste0("tmp_", paste0(sample(letters, n, replace = TRUE), collapse = ""))
Files Coverage
R 83.13%
Project Totals (14 files) 83.13%
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