Nothing
#' men_regr
#'
#' Shiny app for a simple linear regression.
#' If no data are given then the default data from the book will be used.
#' Otherwise the data will be stored as RDS file in a temporary directory.
#'
#' @param ... one or more data sets
#'
#' @return nothing
#' @import shiny
#' @import shinydashboardPlus
#' @importFrom shinydashboard sidebarMenu menuItem dashboardBody
#' @export
#'
#' @examples
#' if (interactive()) men_regr()
#' if (interactive()) men_regr(stackloss)
men_regr <- function(...) {
oldpar <- graphics::par(no.readonly = TRUE)
on.exit(resetpar(oldpar))
pkgs <- checkPackages()
if (!all(pkgs)) stop(sprintf("Please call first:\n install.packages(c(%s))", paste0("'", names(pkgs)[!pkgs], "'", collapse=", ")))
shinyOptions(mmstat=toRDS(...))
source(system.file("app", "men_regr", "app.R", package = "HKRbook"), local = TRUE, chdir = TRUE)$value
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.