This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype HTML> | |
| <meta charset = 'utf-8'> | |
| <html> | |
| <head> | |
| <link rel='stylesheet' href='http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css'> | |
| <script src='http://code.jquery.com/jquery-1.10.2.min.js' type='text/javascript'></script> | |
| <script src='http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js' type='text/javascript'></script> | |
| <style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mytabsetPanel <- function (tabs, id = NULL, selected = NULL) | |
| { | |
| #tabs <- list(...) | |
| tabNavList <- tags$ul(class = "nav nav-tabs", id = id) | |
| tabContent <- tags$div(class = "tab-content") | |
| firstTab <- TRUE | |
| tabsetId <- as.integer(stats::runif(1, 1, 10000)) | |
| tabId <- 1 | |
| for (divTag in tabs) { | |
| thisId <- paste("tab", tabsetId, tabId, sep = "-") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mytabsetPanel <- function (tabs, id = NULL, selected = NULL) | |
| { | |
| #tabs <- list(...) | |
| tabNavList <- tags$ul(class = "nav nav-tabs", id = id) | |
| tabContent <- tags$div(class = "tab-content") | |
| firstTab <- TRUE | |
| tabsetId <- as.integer(stats::runif(1, 1, 10000)) | |
| tabId <- 1 | |
| for (divTag in tabs) { | |
| thisId <- paste("tab", tabsetId, tabId, sep = "-") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## slight modification of tabsetPanel() function | |
| mytabsetPanel <- function (tabs, id = NULL, selected = NULL) | |
| { | |
| #tabs <- list(...) | |
| tabNavList <- tags$ul(class = "nav nav-tabs", id = id) | |
| tabContent <- tags$div(class = "tab-content") | |
| firstTab <- TRUE | |
| tabsetId <- as.integer(stats::runif(1, 1, 10000)) | |
| tabId <- 1 | |
| for (divTag in tabs) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## generates two datasets for illustration | |
| I <- 3 # nb tests | |
| J <- 4 # nb timepoints | |
| dat1 <- data.frame( | |
| Test=gl(I,J,labels=LETTERS[1:I]), | |
| timepoint=rep(1:J,I) | |
| ) | |
| dat1 <- transform(dat1, y=round(rnorm(I*J,2*timepoint),1)) | |
| I <- 5 # nb tests | |
| J <- 3 # nb timepoints |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Define `x`: | |
| ```{r} | |
| x <- LETTERS[1:5] | |
| i <- 1 | |
| ``` | |
| ```{r child, child="sub.Rmd"} | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!-- saved from url=(0014)about:internet --> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <title></title> | |
| <style type="text/css"> | |
| body, td { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # test whether rCharts is installed | |
| rcharts <- require(rCharts) | |
| # test shiny version | |
| shinyv8 <- packageVersion("shiny") == '0.7.0.99' | |
| # auxiliary function to extract numbers from a character string | |
| numextract <- function(string){ # http://stackoverflow.com/questions/19252663/extracting-decimal-numbers-from-a-string | |
| str_extract(string, "\\d+\\.*\\d*") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```{r sessionInfo, echo=FALSE} | |
| si <- sessionInfo() | |
| opkgver <- sapply(si$otherPkgs, function(x) x$Version) | |
| nspkgver <- sapply(si$loadedOnly, function(x) x$Version) | |
| opkgver <- opkgver[sort(names(opkgver))] | |
| nspkgver <- nspkgver[sort(names(nspkgver))] | |
| verso <- paste("(v", opkgver, ")", sep = "") | |
| versns <- paste("(v", nspkgver, ")", sep = "") | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(shiny) | |
| library(shinyIncubator) | |
| library(shinyAce) | |
| options(shiny.maxRequestSize = -1) | |
| platform <- sessionInfo()$R.version$platform | |
| linux <- stringr::str_detect(platform, "linux") | |
| logo <- function(img,link, height="200px") tags$a(href=link, tags$img(src=img, height=height)) | |
| sourcecode <- function(link){ |