Minimal replacement for the course functions used from {inspectdf}:
inspect_cat()inspect_num()inspect_types()show_plot(inspect_cat(...))show_plot(inspect_num(...))show_plot(inspect_types(...))
The GitHub repository and installed R package are both named {inspectdf}, so
existing course code can keep using library(inspectdf) and
inspectdf::inspect_cat().
The upstream {inspectdf} package has been fragile with newer {dplyr}
versions in course examples like:
inspect_cat(my_data) |>
show_plot()This package avoids the upstream dplyr-heavy plotting path and implements only the course workflow we need.
Remove the old {inspectdf} first, then install this replacement from GitHub
with {pacman}.
if ("inspectdf" %in% rownames(installed.packages())) {
remove.packages("inspectdf")
}
pacman::p_install_gh("the-graph-courses/inspectdf")
library(inspectdf)If you prefer {pak}:
if (!requireNamespace("pak", quietly = TRUE)) {
install.packages("pak")
}
pak::pak("the-graph-courses/inspectdf")
library(inspectdf)inspect_cat(iris) |>
show_plot()
inspect_num(iris) |>
show_plot()
inspect_types(iris) |>
show_plot()Existing course examples also work with the tidyverse pipe:
library(dplyr)
library(inspectdf)
starwars %>%
inspect_cat() %>%
show_plot()