| Title: | An Interactive and Feature-Rich Data Viewer | 
| Version: | 0.1.1 | 
| Depends: | R (≥ 4.2.0) | 
| Description: | Provides an interactive viewer for 'data.frame' and 'tibble' objects using 'shiny' https://shiny.posit.co/ and 'DT' https://rstudio.github.io/DT/. It supports complex filtering, column selection, and automatic generation of reproducible 'dplyr' https://dplyr.tidyverse.org/ code for data manipulation. The package is designed for ease of use in data exploration and reporting workflows. | 
| URL: | https://github.com/madhankumarnagaraji/dataviewR | 
| BugReports: | https://github.com/madhankumarnagaraji/dataviewR/issues | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| RoxygenNote: | 7.3.2 | 
| Imports: | shiny, shinyjs, DT, dplyr, labelled, forcats, stringr, purrr, tibble, datamods, htmlwidgets | 
| Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0), shinytest2 | 
| VignetteBuilder: | knitr | 
| Config/testthat/edition: | 3 | 
| NeedsCompilation: | no | 
| Packaged: | 2025-07-21 15:27:55 UTC; Dell | 
| Author: | Madhan Kumar N [aut, cre] | 
| Maintainer: | Madhan Kumar N <madhanmanoj1999@gmail.com> | 
| Repository: | CRAN | 
| Date/Publication: | 2025-07-21 15:53:30 UTC | 
Interactive Data Viewer with Filter and Code Generation
Description
Launches a Shiny application to explore and filter a 'data.frame' or 'tibble'. If no data is provided, it opens an import panel to load a dataset from either the global environment or the packages.
Arguments
| data | A  | 
Details
This function provides:
- A tab-based interface with data import and viewer options. 
- A checkbox panel to select/deselect columns. 
- An input for dplyr-compatible filter expressions. 
- A dynamically generated - dplyrcode preview.
- Metadata display for the variables. 
The filtering uses dplyr::filter() and generates user-friendly code to replicate the steps.
It also provides copyable R code that includes column selection and filtering logic.
Value
Launches a Shiny application in the browser. Does not return a value.
Examples
if (interactive()) {
  dataviewer(mtcars)
  dataviewer() # Opens the import panel
}