Skip to content

Commit

Permalink
refactor: move the messaging to only report positive records
Browse files Browse the repository at this point in the history
  • Loading branch information
chantelwetzel-noaa committed Oct 16, 2024
1 parent 0396862 commit 03fd5a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions R/pull_biological_samples.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ pull_biological_samples <- function(
)
}
bio_samples <- try(get_json(url = url_text))
if (verbose){
cli::cli_inform(
"There are {nrow(bio_samples)} biological samples in the pulled data."
)
}

keep <- which(
bio_samples$ovary_id > 0 |
Expand All @@ -149,6 +144,12 @@ pull_biological_samples <- function(
)
bio_samples <- bio_samples[keep, ]

if (verbose){
cli::cli_inform(
"There are {nrow(bio_samples)} biological samples in the pulled data."
)
}

rename_columns <- which(
colnames(bio_samples) %in%
c(
Expand Down

0 comments on commit 03fd5a1

Please sign in to comment.