Skip to content

r-data-science/rblogapps

Repository files navigation

rblogapps

R-CMD-check test-coverage codecov shiny-apps


This repo contains an R package that includes all apps and app datasets assiocated with my r data blog.

Run App Containers

To run any of these apps as a docker container, simply the line corresponding to each app:

docker run --name appStockoutSalesImpact \
  -p 4201:4201 --rm -dt bfatemi/stockout_sales_impact

docker run --name appHouseBrandsKpis \
  -p 4202:4202 --rm -dt bfatemi/house_brands_kpis

docker run --name appEventImpactKpis \
  -p 4203:4203 --rm -dt bfatemi/event_impact_kpis

docker run --name appEmployeeSalesKpis \
  -p 4204:4204 --rm -dt bfatemi/employee_sales_kpis

docker run --name appCompareBrandImpact \
  -p 4205:4205 --rm -dt bfatemi/compare_brand_impact

Build App Images

To build images for each app, download this repo and from the top level project directory, run the following:

docker-compose build

Once finished building, you will have an image for each of the package's apps on your local machine. Next, to launch all run the following:

docker-compose up

The app containers will be launched and listening on ports 4201-4205:

Visit these links in your browser to interact with the apps:

About R Package

The three main functions exported by this package are as follows:

listBlogApps(): Retrieves names of all apps included in this package

runBlogApp(name): Run an app included in this package given it's name

getBlogData(name): Returns an apps primary dataset given it's name


Examples in R

Install Package

remotes::install_github("r-data-science/rblogapps")

List Package Apps and Datasets

rblogapps::listBlogApps()
rblogapps::listBlogData()

Launch Package App

rblogapps::runBlogApp("employee_sales_kpis")
rblogapps::runBlogApp("house_brands_kpis")
rblogapps::runBlogApp("stockout_sales_impact")
rblogapps::runBlogApp("event_impact_kpis")
rblogapps::runBlogApp("compare_brand_impact")

See App Dataset

rblogapps::getBlogData("employee_sales_kpis")
rblogapps::getBlogData("house_brands_kpis")
rblogapps::getBlogData("stockout_sales_impact")
rblogapps::getBlogData("event_impact_kpis")
rblogapps::getBlogData("compare_brand_impact")

Proprietary - Do Not Distribute

About

This package includes all apps assiocated with the r-data-science blog. Additionally, package includes the primary app datasets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors