Skip to content

Commit

Permalink
update utils::tail
Browse files Browse the repository at this point in the history
  • Loading branch information
equitable-equations committed Apr 13, 2024
1 parent a6145a1 commit de93339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ importFrom(memoise,memoise)
importFrom(rlang,.data)
importFrom(rlang,is_interactive)
importFrom(stats,sd)
importFrom(utils,tail)
importFrom(utils,txtProgressBar)
3 changes: 2 additions & 1 deletion R/transect_subplot_inventories.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#'
#' @import dplyr
#' @importFrom rlang .data
#' @importFrom utils tail
#'
#' @examples
#' \donttest{
Expand Down Expand Up @@ -64,7 +65,7 @@ transect_subplot_inventories <- function(transect) {
}

lengths <- diff(boundary_rows) - 3
lengths <- c(lengths, nrow(transect) - tail(boundary_rows, 1) - 2)
lengths <- c(lengths, nrow(transect) - utils::tail(boundary_rows, 1) - 2)

start_rows <- boundary_rows + 2
end_rows <- start_rows + lengths - 1
Expand Down

0 comments on commit de93339

Please sign in to comment.