Skip to content

Instantly share code, notes, and snippets.

View erikwestlund's full-sized avatar

Erik Westlund erikwestlund

View GitHub Profile
@erikwestlund
erikwestlund / fancy_r_view!
Last active May 30, 2025 17:41
Fancy R View()
#' Fancy View function that opens a DataTable in the browser using DT package
#'
#' @param x The data to view
#' @param title Optional title for the view
#' @return Opens a browser window with the data in a DataTable
#' @export
fancy_view <- function(x, title = NULL) {
# Check if x is provided
if (missing(x)) {
stop("No data provided to view. Please provide a data frame or other viewable object as the first argument.")