HowTo Install ShinySky Collection of Shiny UI Packages
Introducing ShinySky A collection of Shiny UI (User Interface) components/widgets that are not a part of standard Shiny. Currently there is only styled buttons and alerts in ShinySky, but the aim is to slowly add to it so that it becomes at “feature-parity” with Bootstrap, i.e. using standard R idiom, functions, one can completely define everything there is in Bootstrap. The intention is also to collate together the various components being customized. In this Article we are going to HowTo Install ShinySky Collection Shiny UI Packages Centos 7 / RHEL 7.
Dependencies To Install ShinySky
Before start installing ShinySky we need to install devtools in R shiny or else it will fail with non-zero exit status. To install Devtools you have to install Git2r,Curl,Httr,Openssl and Htmltools.
ERROR: configuration failed for package ‘git2r’ * removing ‘/usr/lib64/R/library/git2r’ ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’ * removing ‘/usr/lib64/R/library/httr’ ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’ * removing ‘/usr/lib64/R/library/devtools’
If you receive above error you have to install below mentioned packages then try again
# yum install openssl-devel openssl libcurl-devel
Enter into R Console for installing packages in RShiny
# R > install.packages("devtools") Installing package into ‘/usr/lib64/R/library’ ** building package indices ** installing vignettes ** testing if installed package can be loaded * DONE (devtools) Making 'packages.html' ... done
The downloaded source packages are in ‘/tmp/RtmpN5wzOI/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done > library("devtools") > require("devtools")
Completion of installation verify the packages using list of installed packages in R Application
> ip <- as.data.frame(installed.packages()[,c(1,3:4)]) > rownames(ip) <- NULL > ip <- ip[is.na(ip$Priority),1:2,drop=FALSE] > print(ip, row.names=FALSE) Package Version curl 2.7 devtools 1.13.2 digest 0.6.12 git2r 0.18.0 htmltools 0.3.6 httpuv 1.3.5 httr 1.2.1
Check and Confirm that R devtools are installed then proceed for ShinySky Installation
HowTo Install ShinySky Collection
> devtools::install_github("AnalytixWare/ShinySky") Downloading GitHub repo AnalytixWare/ShinySky@master from URL https://api.github.com/repos/AnalytixWare/ShinySky/zipball/master Installing shinysky ** building package indices ** testing if installed package can be loaded * DONE (shinysky) Making 'packages.html' ... done
you could see an message as mentioned above, if you see any error message like exit status non-zero then ShinySky Installation is not successful. If console message is like above DONE (ShinySky) Install ShynySky is successful.
Now Ready rock with ShinySky action buttons let’s start web app
> shinysky::run.shinysky.example() Loading required package: shiny Listening on http://127.0.0.1:7035 Loading required package: RJSONIO Loading required package: plyr Attaching package: ‘shinysky’ The following object is masked from ‘package:shiny’: actionButton $event  "" $event_count  0
Install ShinySky Collection is Successful. Enjoy using UI action buttons in Shiny Application.
Thanks for your wonderful Support and Encouragement
Stay Connected With Us. Learn More and Earn More