Visualizations and Reports for SWIM
Install with the devtools
package:
devtools::install.packages("tlumip/swimr")
This package uses some dependencies that are not on CRAN. Devtools should find most of these, but the following code will ensure you have all of them.
# CRAN Dependencies
if("devtools" %in% rownames(installed.packages()) == FALSE) {install.packages("devtools")}
if("tidyverse" %in% rownames(installed.packages()) == FALSE) {install.packages("tidyverse")}
if("RSQLite" %in% rownames(installed.packages()) == FALSE) {install.packages("RSQLite")}
if("plotly" %in% rownames(installed.packages()) == FALSE) {install.packages("plotly")}
if("kfigr" %in% rownames(installed.packages()) == FALSE) {install.packages("kfigr")}
if("zoo" %in% rownames(installed.packages()) == FALSE) {install.packages("zoo")}
if("leaflet" %in% rownames(installed.packages()) == FALSE) {install.packages("leaflet")}
if("digest" %in% rownames(installed.packages()) == FALSE) {install.packages("digest")}
if("DT" %in% rownames(installed.packages()) == FALSE) {install.packages("DT")}
# Bioconductor dependency for omxr
if("rhdf5" %in% rownames(installed.packages()) == FALSE) {
source("http://bioconductor.org/biocLite.R")
biocLite("rhdf5")
}
# Github libraries
if("omxr" %in% rownames(installed.packages()) == FALSE) {
devtools::install_github("gregmacfarlane/omxr")
}
if("dplyrExtras" %in% rownames(installed.packages()) == FALSE) {
devtools::install_github("skranz/dplyrExtras")
}
if("outviz" %in% rownames(installed.packages()) == FALSE) {
devtools::install_github("pbsag/outviz")
}
if("swimr" %in% rownames(installed.packages()) == FALSE) {
devtools::install_github("tlumip/swimr")
}
If you are working inside a proxy (like if you're ODOT staff), you will need to configure your proxy for GitHub installs.
library(httr)
set_config(use_proxy(url="proxynew.odot.state.or.us", port=8080))
set_config( config( ssl_verifypeer = 0L ) )