This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #' 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.") |