Skip to content

Commit

Permalink
Fixes for latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Sep 23, 2024
1 parent a54fe5d commit 4640afc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions R/rl_taxa.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' ex1 <- rl_sis(id = 9404)
#' nrow(ex1$assessments)
#' }
rl_sis <- function(id, key = NULL, latest = FALSE, parse = TRUE, ...) {
rl_sis <- function(id, key = NULL, parse = TRUE, ...) {
assert_is(parse, "logical")

rl_parse(rl_sis_(id, key, ...), parse)
Expand Down Expand Up @@ -52,8 +52,8 @@ rl_sis_latest <- function(id, key = NULL, parse = TRUE, ...) {
assert_is(parse, "logical")

Check warning on line 52 in R/rl_taxa.R

View check run for this annotation

Codecov / codecov/patch

R/rl_taxa.R#L52

Added line #L52 was not covered by tests

tmp <- rl_sis(id, key, ...)$assessments
tmp_sub <- subset(tmp, latest)
rl_assessment(id = tmp$assessment_id[1], key = key, parse = parse, ...)
tmp_sub <- subset(tmp, tmp$latest)
rl_assessment(id = tmp_sub$assessment_id[1], key = key, parse = parse, ...)

Check warning on line 56 in R/rl_taxa.R

View check run for this annotation

Codecov / codecov/patch

R/rl_taxa.R#L54-L56

Added lines #L54 - L56 were not covered by tests
}

#' Species assessment summary
Expand Down Expand Up @@ -165,8 +165,8 @@ rl_species_latest <- function(genus, species, infra = NULL,

tmp <- rl_species(genus, species, infra = infra,
subpopulation = subpopulation, key, ...)$assessments
tmp_sub <- subset(tmp, latest)
rl_assessment(id = tmp$assessment_id[1], key = key, parse = parse, ...)
tmp_sub <- subset(tmp, tmp$latest)
rl_assessment(id = tmp_sub$assessment_id[1], key = key, parse = parse, ...)

Check warning on line 169 in R/rl_taxa.R

View check run for this annotation

Codecov / codecov/patch

R/rl_taxa.R#L166-L169

Added lines #L166 - L169 were not covered by tests
}

#' Family assessment summary
Expand Down
2 changes: 1 addition & 1 deletion man/rl_sis.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4640afc

Please sign in to comment.