Skip to content
Add a custom loader for R shiny
Branch: master
Clone or download
emitanaka
emitanaka git attribute
Latest commit 3131993 Jul 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R on CRAN Mar 27, 2018
docs bug report Apr 27, 2018
inst custom text Mar 18, 2018
man on CRAN Mar 27, 2018
.Rbuildignore hexsticker Mar 31, 2018
.gitattributes git attribute Jul 17, 2018
.gitignore git attribute Jul 17, 2018
DESCRIPTION bug report Apr 27, 2018
NAMESPACE custom text Mar 18, 2018
README.Rmd git attribute Jul 17, 2018
README.md pkgdown inspired by Sarah Apr 27, 2018
customtext.gif custom text Mar 18, 2018
example.gif on CRAN Mar 27, 2018
nyancat.gif custom text Mar 18, 2018
shinycustomloader.Rproj initial Mar 11, 2018
shinycustomloader_hexSticker.png hexsticker Apr 1, 2018
standard.gif custom text Mar 18, 2018

README.md

shinycustomloader

CRAN_Status_Badge

Overview

This R-package is an extension to the shinycssloaders package and allows for custom css/html or gif/image file for the loading screen. You may include your css/html files or gif/image files for your custom loading screen. There are twelve built in css/html loading screen specified by dnaspin, pacman, loader1, loader2, ..., loader10.

You can install this package from github as:

Installation

# You can install it from CRAN:
install.packages("shinycustomloader")

# Or the the development version from GitHub:
# install.packages("devtools")
devtools::install_github('emitanaka/shinycustomloader')

Example

You can see an example shiny app that employs the custom loaders by launching an example app in the package.

library(shinycustomloader)
shinyExample()

Customisation

The command is a simple wrapper for the shiny output and you can easily specify your own favorite gif (say nyancat.gif) for customisation. Place nyancat.gif in the folder www within your shiny app folder (create one if you don't have it in your shiny folder).

withLoader(plotOutput("distPlot"), type="image", loader="nyancat.gif")

You can also further customise by inputting your own text as a marquee object with its own style.

You can’t perform that action at this time.