Skip to content

Commit

Permalink
Update interface.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBarrington authored Oct 22, 2024
1 parent 5d792ec commit 858cdc8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions R/interface.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,15 @@ clear <- function()
#'
#' Scroll and search through long data streams like with \code{bash} \code{less}.
#'
#' @importFrom purrr when
#' @importFrom tibble is_tibble
#' @importFrom utils page
#'
#' @export
#'
less <- function(x, ...) {
if(is_tibble(x))
x %<>% as.data.frame()
page(x=x, method='p')
if(tibble::is_tibble(x))
x |> as.data.frame() -> x
utils::page(x=x, method='p')
}

#' Open X11 on a display
Expand Down

0 comments on commit 858cdc8

Please sign in to comment.