Skip to content

Commit

Permalink
Resolve NOTEs about undefined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Sep 5, 2024
1 parent 5a75d73 commit 2fddac5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/array_error_metrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#' @author Nicholas J. Eagles
#' @keywords internal
.get_neighbors <- function(i, coords) {
## For R CMD check
array_row <- array_col <- capture_area <- key <- NULL

this_array_row <- coords[[i, "array_row"]]
this_array_col <- coords[[i, "array_col"]]
this_capture_area <- coords[[i, "capture_area"]]
Expand Down Expand Up @@ -95,6 +98,9 @@
#' @author Nicholas J. Eagles
#' @keywords internal
.add_error_metrics <- function(coords, coords_new, inter_spot_dist_px) {
## For R CMD CHECK
pxl_col_in_fullres <- pxl_col_in_fullres_rounded <- pxl_row_in_fullres <- pxl_row_in_fullres_rounded <- key <- capture_area <- NULL

coords_new <- coords_new |>
mutate(
euclidean_error = (
Expand Down

0 comments on commit 2fddac5

Please sign in to comment.