R/PakNAcc.R

Defines functions PakNAcc

Documented in PakNAcc

#' @title PakNAcc
#'
#' @description Shiny App for National Accounts
#' 
#' @return Pivot tables and graphs for Pakistan's Quarterly National Accounts data
#' 
#' @import collapse  htmltools magrittr rpivotTable shiny
#' @importFrom DT DTOutput datatable formatCurrency renderDT
#' @importFrom shinydashboard sidebarMenu
#' @importFrom shinydashboardPlus box dashboardHeader dashboardSidebar dashboardPage messageItem notificationItem taskItem 
#' @examples
#' if(interactive()) {
#'     library(PakNAcc)
#'     PakNAcc()
#'   }
#' 
#' @export

PakNAcc <- function() {
  appDir <- system.file("shinyapp", package = "PakNAcc")
  if (appDir == "") {
    stop("Could not find app directory. Try re-installing `PakNAcc`.", call. = FALSE)
  }
  shiny::runApp(appDir, display.mode = "normal")
}

Try the PakNAcc package in your browser

Any scripts or data that you put into this service are public.

PakNAcc documentation built on April 3, 2025, 8:49 p.m.