ropensci-archive / plotly-test-table

:no_entry: ARCHIVED :no_entry:
1 stars 1 forks source link

Error running make #5

Closed cpsievert closed 9 years ago

cpsievert commented 9 years ago

I see:

cpsievert@Carsons-MacBook-Pro:~/Desktop/github/local/plotly-test-table$ make
R --vanilla < table.R

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> require(plotly)
Loading required package: plotly
Loading required package: RCurl
Loading required package: bitops
Loading required package: RJSONIO
Loading required package: ggplot2
> require(testthat)
Loading required package: testthat
> require(parallel)
Loading required package: parallel
> 
> data.dir <- normalizePath("data")
> 
> ## This file specifies the list of all the versions of the ggplotly
> ## code (not testing code) for which we want to run the current tests.
> code_commits <- read.csv("code_commits.csv", as.is=TRUE, comment.char="#")
> 
> ## Parse the first occurance of pattern from each of several strings
> ## using (named) capturing regular expressions, returning a matrix
> ## (with column names).
> str_match_perl <- function(string,pattern){
+   stopifnot(is.character(string))
+   stopifnot(is.character(pattern))
+   stopifnot(length(pattern)==1)
+   parsed <- regexpr(pattern,string,perl=TRUE)
+   captured.text <- substr(string,parsed,parsed+attr(parsed,"match.length")-1)
+   captured.text[captured.text==""] <- NA
+   captured.groups <- if(is.null(attr(parsed, "capture.start"))){
+     NULL
+   }else{
+     do.call(rbind,lapply(seq_along(string),function(i){
+       st <- attr(parsed,"capture.start")[i,]
+       if(is.na(parsed[i]) || parsed[i]==-1)return(rep(NA,length(st)))
+       substring(string[i],st,st+attr(parsed,"capture.length")[i,]-1)
+     }))
+   }
+   result <- cbind(captured.text,captured.groups)
+   colnames(result) <- c("",attr(parsed,"capture.names"))
+   result
+ }
> 
> ## Parse several occurances of pattern from each of several strings
> ## using (named) capturing regular expressions, returning a list of
> ## matrices (with column names).
> str_match_all_perl <- function(string,pattern){
+   stopifnot(is.character(string))
+   stopifnot(is.character(pattern))
+   stopifnot(length(pattern)==1)
+   parsed <- gregexpr(pattern,string,perl=TRUE)
+   lapply(seq_along(parsed),function(i){
+     r <- parsed[[i]]
+     full <- substring(string[i],r,r+attr(r,"match.length")-1)
+     starts <- attr(r,"capture.start")
+     if(is.null(starts)){
+       m <- cbind(full)
+       colnames(m) <- ""
+       m
+     }else{
+       if(r[1]==-1)return(matrix(nrow=0,ncol=1+ncol(starts)))
+       names <- attr(r,"capture.names")
+       lengths <- attr(r,"capture.length")
+       subs <- substring(string[i],starts,starts+lengths-1)
+       m <- matrix(c(full,subs),ncol=length(names)+1)
+       colnames(m) <- c("",names)
+       m
+     }
+   })
+ }
> 
> ### Named capture regular expression for parsing git log
> ### --pretty=format:'%H %ci %s' vis str_match_perl.
> commit.line.pattern <-
+   paste0("(?<SHA1>[0-9a-f]{40})",
+          " ",
+          "(?<datetime>",
+          "(?<year>[0-9]{4})",
+          "-",
+          "(?<month>[0-9]{2})",
+          "-",
+          "(?<day>[0-9]{2})",
+          " ",
+          "(?<hour>[0-9]{2})",
+          ":",
+          "(?<minute>[0-9]{2})",
+          ":",
+          "(?<second>[0-9]{2})",
+          ")",
+          " ",
+          "(?<gmt_offset_sign>[-+])",
+          "(?<gmt_offset_hours>[0-9]{2})",
+          "(?<gmt_offset_minutes>[0-9]{2})",
+          " ",
+          "(?<subject>.*)")
> 
> ### Parse a git log character vector, returning data.frame.
> commits <- function(git.lines){
+   stopifnot(is.character(git.lines))
+   m <- str_match_perl(git.lines, commit.line.pattern)
+   stopifnot(!is.na(m[,1]))
+   commit.time <- strptime(m[,"datetime"], "%Y-%m-%d %H:%M:%S", "GMT") + 0
+   gmt.offset.sign <- ifelse(m[,"gmt_offset_sign"]=="+", 1, -1)
+   gmt.offset.hours <- as.numeric(m[,"gmt_offset_hours"])
+   minutes.only <- as.numeric(m[,"gmt_offset_minutes"])
+   gmt.offset.minutes <- minutes.only + gmt.offset.hours * 60
+   gmt.offset.seconds <- gmt.offset.minutes * 60
+   gmt.offset <- gmt.offset.sign * gmt.offset.seconds
+   gmt.time <- commit.time - gmt.offset
+   subject <- m[, "subject"]
+   SHA1 <- m[, "SHA1"]
+   abbrev <- substr(subject, 1, 18)
+   commits <- data.frame(SHA1, subject, abbrev, gmt.time,
+                         stringsAsFactors = FALSE)
+   rownames(commits) <- commits$SHA1
+   class(commits) <- c("commits", "data.frame")
+   stopifnot(nrow(commits) == length(git.lines))
+   commits
+ }
> 
> ### Print commits 80 characters per line.
> print.commits <- function(commits){
+   print(as.data.frame(commits)[, c("gmt.time", "abbrev")])
+ }
> 
> ### Use convert on the command line to convert file.png to
> ### file-thumb.png.
> thumb <- function(png.file){
+   stopifnot(is.character(png.file))
+   stopifnot(length(png.file) == 1)
+   if(file.exists(png.file)){
+     thumb.file <- sub("[.]png$", "-thumb.png", png.file)
+     if(!file.exists(thumb.file)){
+       ##mcparallel({
+       cmd <- paste("convert", png.file, "-resize 230", thumb.file)
+       cat("\n", cmd, "\n", sep="")
+       system(cmd)
+       ##})
+     }
+     thumb.file
+   }else{
+     NA
+   }
+ }
> 
> ### Run all tests in test.file, defining save_outputs in a way which
> ### just saves ggplots.
> test.ggplots <- function(test.file){
+   result.list <- list()
+   save_outputs <- function(gg, name, ...) {
+     filesystem_name <- gsub(' ', '-', name)
+     fs.png <- paste0(filesystem_name, ".png")
+     gg.png.file <- file.path(data.dir, "ggplot2", fs.png)
+     ggplot.dir <- dirname(gg.png.file)
+     dir.create(ggplot.dir, showWarnings = FALSE, recursive = TRUE)
+     if(!file.exists(gg.png.file)){
+       cat(sprintf("\npng(%s)\n", gg.png.file)) 
+       png(gg.png.file, width=700, h=500, type="cairo")
+       print(gg)
+       dev.off()
+     }
+     result.list[[name]] <<- name
+   }
+   e <- new.env()
+   tryCatch({
+     testthat:::test_file(test.file, env=e)
+   }, error=function(e){
+     cat("\nError in testthat::test_file\n")
+     print(e)
+   })
+   as.character(do.call(c, result.list))
+ }
> 
> ## Assume plotly repos is in the same directory as plotly-test-table
> ## repos.
> plotly.pkg <- file.path("..", "plotly")
> testthat.dir <- file.path(plotly.pkg, "tests", "testthat")
> test.files <- Sys.glob(file.path(testthat.dir, "test-*.R"))
> 
> ## get the SHA1 of the tests on the current branch; and the SHA1,
> ## time, and subjects of all commits.
> old.wd <- setwd(testthat.dir)
> test.SHA1 <- system("git rev-parse HEAD", intern=TRUE)
> all.cmd <- "git log --pretty=format:'%H %ci %s' --all"
> all.txt <- system(all.cmd, intern=TRUE)
> all.commits <- commits(all.txt)
> setwd(old.wd)
> 
> ## Load database which records test SHA1, test files, and test names.
> load("testfileDB.RData")
> 
> ## Need to initialize elements as lists, in case there are single
> ## elements in the result of test.ggplots.
> if(is.null(testfileDB[[test.SHA1]])){
+   testfileDB[[test.SHA1]] <- list()
+ }
> 
> ## For every test-*.R file, run it and see what ggplots are produced.
> for(test.file in test.files){
+   test.base <- basename(test.file)
+   if(is.null(testfileDB[[test.SHA1]][[test.base]])){
+     result <- test.ggplots(test.file)
+     testfileDB[[test.SHA1]][[test.base]] <- result
+   }
+ }
Abline : ......

Area : .......

:) 
bar : .................

Boxplot : .........

You rock! 
Build function : ...

categorical data on the axes : .......

Contour : ...

Woot! 
date : ..............

Probability density : .....

Density2d : ...

geom_errorbarh : .....

Errorbar : ...

Facets : ...............

Heatmap : ....

:) 
Histogram : .......stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
.............

Hline : ....................

labels : ......

legends : .....

line : .........

names : ..

path : ..............................

polygon : .....................................................

ribbon : .....

segment : ..

size : .......

You are a coding rockstar! 
Stack : .......

Step : ............

Text : ...........

ggplot themes : .....................

ggplot ticks : ..........................................................................................................

Vline : .................

means and error bars : ................................Loading required package: plyr
......................................

Filename : .

get_figure : ......

rotated ticks : 

Unimplemented geoms : ....

Warning messages:
1: In layer2traces(L, df, misc) : Converting violin plot into boxplot:

            probability density estimation is not supported in Plotly yet.
2: In layer2traces(L, df, misc) : You may want to use geom_histogram.
3: In layer2traces(L, df, misc) :
  Conversion not implemented for geom_unimplemented (basic geom_unimplemented), ignoring. Please open an issue with your example code at https://github.com/ropensci/plotly/issues
> 
> ## Save the testfileDB to avoid having to re-run these tests just to
> ## find out which plots are produced.
> save(testfileDB, file="testfileDB.RData")
> 
> ### After having installed the version of plotly specified in
> ### code_commits.csv, and run all of the tests and save the generated
> ### plotlys to disk.
> test.plotlys <- function(test.file){
+   ## This is run from within the plotly/tests/testthat directory, so
+   ## data.dir should be a full path.
+   save_outputs <- function(gg, name, ...) {
+     filesystem_name <- gsub(' ', '-', name)
+     fs.png <- paste0(filesystem_name, ".png")
+     plotly.png.file <- file.path(data.dir, SHA1, fs.png)
+     SHA1.dir <- dirname(plotly.png.file)
+     dir.create(SHA1.dir, showWarnings = FALSE, recursive = TRUE)
+     if(!file.exists(plotly.png.file)){
+       ##mcparallel({
+         py <- plotly("TestBot", "r1neazxo9w")
+         kwargs <-
+           list(filename=paste0("ggplot2/", SHA1, "/", name),
+                fileopt="overwrite",
+                auto_open=FALSE)
+         u <- py$ggplotly(gg, kwargs=kwargs)
+         plotly.png.url <- paste0(u$response$url, ".png")
+         cat(sprintf("\ndownloading %s -> %s\n",
+                     plotly.png.url, plotly.png.file))
+         pngdata <- getURLContent(plotly.png.url)
+         writeBin(as.raw(pngdata), plotly.png.file)
+       ##})
+     }
+   }
+   e <- new.env()
+   tryCatch({
+     test_file(test.file, env=e)
+   }, error=function(e){
+     cat("\nError in testthat::test_file\n")
+     print(e)
+   })
+ }
> 
> ## Check to see if we need to run any of the tests, by checking to see
> ## if the PNG files exist. If not, run the test and make the plotlys.
> test.info <- testfileDB[[test.SHA1]]
> for(commit.i in 1:nrow(code_commits)){
+   code_commit <- code_commits[commit.i, ]
+   SHA1 <- code_commit$SHA1
+   commit.dir <- file.path("data", SHA1)
+   commit.files <- dir(commit.dir)
+   to.run <- list()
+   for(test.base in names(test.info)){
+     test.names <- test.info[[test.base]]
+     if(length(test.names)){
+       test.pngs <- paste0(test.names, ".png")
+       if(!all(test.pngs %in% commit.files)){
+         to.run[[test.base]] <- test.base
+       }
+     }
+   }
+   if(length(to.run)){
+     install.str <- paste0(code_commit$user, "/plotly@", SHA1)
+     devtools::install_github(install.str)
+   }
+   for(test.base in to.run){
+     test.file <- file.path(testthat.dir, test.base)
+     test.plotlys(test.file)
+   }
+ }
Downloading github repo cpsievert/plotly@05d29e763e3984501535998de9a1aef21d86902f
Installing plotly
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL  \
  '/private/var/folders/wc/zv89d1fx5nxdljsysq40m6vr0000gn/T/Rtmp9XUlWo/devtoolsd0941a8230f1/cpsievert-plotly-05d29e7'  \
  --library='/Library/Frameworks/R.framework/Versions/3.1/Resources/library'  \
  --install-tests 

* installing *source* package ‘plotly’ ...
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (plotly)
Reloading installed plotly
Abline : ......
downloading https://plot.ly/~TestBot/1182.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/abline.png

Area : .....
downloading https://plot.ly/~TestBot/1183.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/area.png
..
downloading https://plot.ly/~TestBot/1184.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/area-fillcolor.png

bar : .......
downloading https://plot.ly/~TestBot/1185.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/bar-dodge.png
...
downloading https://plot.ly/~TestBot/1186.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/bar-stack.png
...
downloading https://plot.ly/~TestBot/1187.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/bar-identity.png
....
downloading https://plot.ly/~TestBot/1188.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/bar-dates.png

Boxplot : ...
downloading https://plot.ly/~TestBot/1189.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/boxplot.png
...
downloading https://plot.ly/~TestBot/1190.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/violin.png
...
downloading https://plot.ly/~TestBot/1191.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/boxplot-datetime.png

categorical data on the axes : ..
downloading https://plot.ly/~TestBot/1192.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/bar-factor-category.png
.....
downloading https://plot.ly/~TestBot/1193.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/bar-category-names.png

Contour : ...
downloading https://plot.ly/~TestBot/1194.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/contour.png

date : ....
downloading https://plot.ly/~TestBot/1195.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/date-strings.png
...
downloading https://plot.ly/~TestBot/1196.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/date-class-Date.png
.......
downloading https://plot.ly/~TestBot/1197.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/date-irregular-time-series.png

Probability density : .....
downloading https://plot.ly/~TestBot/1198.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/density.png

Density2d : ...
downloading https://plot.ly/~TestBot/1199.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/density2d.png

geom_errorbarh : .....
downloading https://plot.ly/~TestBot/1200.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/errorbar-horizontal.png

Errorbar : ...
downloading https://plot.ly/~TestBot/1201.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/errorbar.png

Facets : ...
downloading https://plot.ly/~TestBot/1202.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free.png
..
downloading https://plot.ly/~TestBot/1203.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free_y.png
..
downloading https://plot.ly/~TestBot/1204.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free_x.png
..
downloading https://plot.ly/~TestBot/1205.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free.png
..
downloading https://plot.ly/~TestBot/1206.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free_y.png
..
downloading https://plot.ly/~TestBot/1207.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free_x.png
..

Heatmap : ....
downloading https://plot.ly/~TestBot/1208.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/heatmap.png

:) 
Histogram : .....
downloading https://plot.ly/~TestBot/1209.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/histogram-barmodestack.png
..
downloading https://plot.ly/~TestBot/1210.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/histogram-binwidth.png
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
.....stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.

downloading https://plot.ly/~TestBot/1211.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/histogram-dates.png
....
downloading https://plot.ly/~TestBot/1212.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/histogram-POSIXt-bins.png
....
downloading https://plot.ly/~TestBot/1213.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/histogram-Date-bins.png

Hline : ........
downloading https://plot.ly/~TestBot/1214.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/hline.png
..........
downloading https://plot.ly/~TestBot/1215.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/hline-multiple.png
..
downloading https://plot.ly/~TestBot/1216.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/hline-factor.png

labels : .
downloading https://plot.ly/~TestBot/1217.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/labels-ggtitle.png
..
downloading https://plot.ly/~TestBot/1218.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/labels-ylab.png
..
downloading https://plot.ly/~TestBot/1219.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/labels-scale_x_continuous_name.png
.
downloading https://plot.ly/~TestBot/1220.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/labels-angles.png

legends : .
downloading https://plot.ly/~TestBot/1221.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/legend-hidden.png
....
downloading https://plot.ly/~TestBot/1222.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/legend-order.png

line : ..
downloading https://plot.ly/~TestBot/1223.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/linetype-types.png
.......
downloading https://plot.ly/~TestBot/1224.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/linetype-colors.png

names : ..
downloading https://plot.ly/~TestBot/1225.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/names.png

path : ....
downloading https://plot.ly/~TestBot/1226.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/path-lines-diff-from-paths.png
............
downloading https://plot.ly/~TestBot/1227.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/path-colors.png
.......
downloading https://plot.ly/~TestBot/1228.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/path-colored-groups-stay-together.png
.......
downloading https://plot.ly/~TestBot/1229.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/path-line-symbols.png

polygon : .......
downloading https://plot.ly/~TestBot/1230.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/polygons-filled-polygons.png
...........
downloading https://plot.ly/~TestBot/1231.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/polygons-springgreen3.png
.........
downloading https://plot.ly/~TestBot/1232.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/polygons-springgreen3-lab.png
.............
downloading https://plot.ly/~TestBot/1233.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/polygons-dashed.png
1..
downloading https://plot.ly/~TestBot/1235.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/polygons-borders.png

1. Error: filled polygons become several traces --------------------------------
Gateway Timeout

1: withCallingHandlers(eval(code, new_test_environment), error = capture_calls)
2: eval(code, new_test_environment)
3: eval(expr, envir, enclos)
4: save_outputs(gg, "polygons-dashed") at test-ggplot-polygons.R:77
5: getURLContent(plotly.png.url)
6: stop.if.HTTP.error(http.header)

ribbon : .....
downloading https://plot.ly/~TestBot/1236.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ribbon.png

segment : ..
downloading https://plot.ly/~TestBot/1237.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/segment.png

size : ..
downloading https://plot.ly/~TestBot/1238.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/size-not-a-vector.png
..
downloading https://plot.ly/~TestBot/1239.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/size-is-a-vector.png
...
downloading https://plot.ly/~TestBot/1240.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/size-global-scaling.png

Stack : .......
downloading https://plot.ly/~TestBot/1241.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/stack.png

You are a coding rockstar! 
Step : ..
downloading https://plot.ly/~TestBot/1242.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.linear-geom_line.png
..
downloading https://plot.ly/~TestBot/1243.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.linear-geom_path.png
..
downloading https://plot.ly/~TestBot/1244.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.hv.png
..
downloading https://plot.ly/~TestBot/1245.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.vh.png
..
downloading https://plot.ly/~TestBot/1246.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.hvh.png
..
downloading https://plot.ly/~TestBot/1247.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.vhv.png

Text : ....
downloading https://plot.ly/~TestBot/1248.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/text.png
.......
downloading https://plot.ly/~TestBot/1249.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/text-colour.png

ggplot themes : ..
downloading https://plot.ly/~TestBot/1250.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-background.png
....
downloading https://plot.ly/~TestBot/1251.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-ticks-and-grids.png
..
downloading https://plot.ly/~TestBot/1252.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-ticks-default.png
..
downloading https://plot.ly/~TestBot/1253.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-zeroline-default.png
..
downloading https://plot.ly/~TestBot/1254.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-dashed-grid-lines.png
...
downloading https://plot.ly/~TestBot/1255.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-marker-default.png
..
downloading https://plot.ly/~TestBot/1256.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-panel-border-1.png
....
downloading https://plot.ly/~TestBot/1257.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/theme-panel-border-2.png

ggplot ticks : 
downloading https://plot.ly/~TestBot/1258.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes.png
.......
downloading https://plot.ly/~TestBot/1259.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-facet-grid.png
.......
downloading https://plot.ly/~TestBot/1260.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-scales-free.png
.......
downloading https://plot.ly/~TestBot/1261.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-space-free.png
.......
downloading https://plot.ly/~TestBot/1262.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-flip.png
.......
downloading https://plot.ly/~TestBot/1263.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-discrete-order.png
..
downloading https://plot.ly/~TestBot/1264.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-limits-hide.png
..
downloading https://plot.ly/~TestBot/1265.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-limits-gap.png
.
downloading https://plot.ly/~TestBot/1266.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-nochange.png
...
downloading https://plot.ly/~TestBot/1267.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-more.png
...
downloading https://plot.ly/~TestBot/1268.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-less.png
...
downloading https://plot.ly/~TestBot/1269.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-scale-labels.png
...
downloading https://plot.ly/~TestBot/1270.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-ticks-lines-labels.png
.....
downloading https://plot.ly/~TestBot/1271.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-ticks-labels.png
....
downloading https://plot.ly/~TestBot/1272.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ycontinuous-ranges.png
..
downloading https://plot.ly/~TestBot/1273.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ylim-ranges.png
........
downloading https://plot.ly/~TestBot/1274.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-yreverse-ranges.png
........
downloading https://plot.ly/~TestBot/1275.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-yreverse-limits-ranges.png
........
downloading https://plot.ly/~TestBot/1276.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ylim-reversed-ranges.png
........
downloading https://plot.ly/~TestBot/1277.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-evenly-spaced-ticks.png
...
downloading https://plot.ly/~TestBot/1278.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-y.png
....
downloading https://plot.ly/~TestBot/1279.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-y-keep-grid.png
....

Vline : ........
downloading https://plot.ly/~TestBot/1280.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/vline.png
.........
downloading https://plot.ly/~TestBot/1281.png -> /Users/cpsievert/Desktop/github/local/plotly-test-table/data/05d29e763e3984501535998de9a1aef21d86902f/vline-multiple.png

Warning messages:
1: In layer2traces(L, df, misc) : Converting violin plot into boxplot:

            probability density estimation is not supported in Plotly yet.
2: In layer2traces(L, df, misc) : Converting violin plot into boxplot:

            probability density estimation is not supported in Plotly yet.
3: In layer2traces(L, df, misc) : You may want to use geom_histogram.
4: In layer2traces(L, df, misc) : You may want to use geom_histogram.
> 
> ## Make test table with one row for every element of current
> ## testfileDB (test.info) and one column for every line in
> ## code_commits.csv.
> test.names <- as.character(unlist(test.info))
> rev.commits <- code_commits[nrow(code_commits):1, ]
> columns.df <- with(rev.commits, {
+   data.frame(dir=c("ggplot2", SHA1), label=c("ggplot2", label))
+ })
> td.mat <- 
+   matrix(NA, length(test.names), nrow(columns.df))
> rownames(td.mat) <- test.names
> colnames(td.mat) <- columns.df$label
> png.mat <- big.mat <- td.mat
> 
> table.dir <- file.path("tables", test.SHA1)
> dir.create(table.dir, recursive=TRUE)
> ## First go to the directory where we will be making the table, so
> ## thumb() works fine.
> old.wd <- setwd(table.dir)
> for(column.i in 1:nrow(columns.df)){
+   column.info <- columns.df[column.i, ]
+   png.file <-
+     file.path("..", "..", "data", column.info$dir, paste0(test.names, ".png"))
+   thumb.file <- png.file
+   for(thumb.i in seq_along(thumb.file)){
+     thumb.file[[thumb.i]] <- thumb(thumb.file[[thumb.i]])
+   }
+   td.mat[, column.i] <-
+     sprintf('<a href="%s"><img src="%s" /></a>', png.file, thumb.file)
+   png.mat[, column.i] <-
+     sprintf('<img src="%s" />', png.file)
+   big.mat[, column.i] <-
+     sprintf('<img src="%s" />', png.file)
+ }

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/abline.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/abline-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/area.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/area-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/area-fillcolor.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/area-fillcolor-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-dodge.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-dodge-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-stack.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-stack-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-identity.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-identity-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-dates.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-dates-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/boxplot.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/boxplot-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/violin.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/violin-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/boxplot-datetime.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/boxplot-datetime-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-factor-category.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-factor-category-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-category-names.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/bar-category-names-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/contour.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/contour-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/date-strings.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/date-strings-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/date-class-Date.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/date-class-Date-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/date-irregular-time-series.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/date-irregular-time-series-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/density.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/density-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/density2d.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/density2d-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/errorbar-horizontal.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/errorbar-horizontal-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/errorbar.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/errorbar-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free_y.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free_y-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free_x.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_wrap_free_x-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free_y.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free_y-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free_x.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/facet_grid_free_x-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/heatmap.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/heatmap-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-barmodestack.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-barmodestack-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-binwidth.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-binwidth-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-dates.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-dates-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-POSIXt-bins.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-POSIXt-bins-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-Date-bins.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/histogram-Date-bins-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/hline.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/hline-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/hline-multiple.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/hline-multiple-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/hline-factor.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/hline-factor-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-ggtitle.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-ggtitle-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-ylab.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-ylab-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-scale_x_continuous_name.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-scale_x_continuous_name-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-angles.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/labels-angles-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/legend-hidden.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/legend-hidden-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/legend-order.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/legend-order-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/linetype-types.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/linetype-types-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/linetype-colors.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/linetype-colors-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/names.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/names-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-lines-diff-from-paths.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-lines-diff-from-paths-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-colors.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-colors-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-colored-groups-stay-together.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-colored-groups-stay-together-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-line-symbols.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/path-line-symbols-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-filled-polygons.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-filled-polygons-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-springgreen3.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-springgreen3-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-springgreen3-lab.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-springgreen3-lab-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-borders.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/polygons-borders-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ribbon.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ribbon-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/segment.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/segment-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/size-not-a-vector.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/size-not-a-vector-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/size-is-a-vector.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/size-is-a-vector-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/size-global-scaling.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/size-global-scaling-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/stack.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/stack-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.linear-geom_line.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.linear-geom_line-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.linear-geom_path.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.linear-geom_path-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.hv.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.hv-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.vh.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.vh-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.hvh.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.hvh-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.vhv.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/step-gg.vhv-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/text.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/text-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/text-colour.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/text-colour-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-background.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-background-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-ticks-and-grids.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-ticks-and-grids-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-ticks-default.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-ticks-default-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-zeroline-default.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-zeroline-default-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-dashed-grid-lines.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-dashed-grid-lines-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-marker-default.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-marker-default-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-panel-border-1.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-panel-border-1-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-panel-border-2.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/theme-panel-border-2-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-facet-grid.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-facet-grid-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-scales-free.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-scales-free-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-space-free.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-boxes-space-free-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-flip.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-flip-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-discrete-order.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-discrete-order-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-limits-hide.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-limits-hide-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-limits-gap.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-limits-gap-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-nochange.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-nochange-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-more.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-more-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-less.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-breaks-less-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-scale-labels.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-scale-labels-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-ticks-lines-labels.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-ticks-lines-labels-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-ticks-labels.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-ticks-labels-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ycontinuous-ranges.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ycontinuous-ranges-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ylim-ranges.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ylim-ranges-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-yreverse-ranges.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-yreverse-ranges-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-yreverse-limits-ranges.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-yreverse-limits-ranges-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ylim-reversed-ranges.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-ylim-reversed-ranges-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-evenly-spaced-ticks.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-evenly-spaced-ticks-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-y.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-y-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-y-keep-grid.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/ticks-hide-y-keep-grid-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/vline.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/vline-thumb.png

convert ../../data/05d29e763e3984501535998de9a1aef21d86902f/vline-multiple.png -resize 230 ../../data/05d29e763e3984501535998de9a1aef21d86902f/vline-multiple-thumb.png
> setwd(old.wd)
> 
> library(xtable)
> for(test.name in rownames(td.mat)){
+   img.tag <- png.mat[test.name, ]
+   df <- data.frame(label=names(img.tag), img.tag)
+   xt <- xtable(t(df))
+   html.file <- file.path(table.dir, paste0(test.name, ".html"))
+   print(xt, type="html", file=html.file, sanitize.text.function=identity,
+         include.rownames=FALSE, include.colnames=FALSE)
+ }
> ## Make big.html which shows big images directly.
> big.df <-
+   data.frame(test=rownames(td.mat),
+              big.mat)
> xt <- xtable(big.df)
> print(xt, type="html", file=file.path(table.dir, "big.html"),
+       sanitize.text.function=identity,
+       include.rownames=FALSE)
> ## Make index.html which shows small -thumb.png images and links to
> ## the bigger ones.
> td.df <-
+   data.frame(test=sprintf('<a href="%s.html">%s</a>',
+                test.names, test.names),
+              td.mat)
> xt <- xtable(td.df)
> print(xt, type="html", file=file.path(table.dir, "index.html"),
+       sanitize.text.function=identity,
+       include.rownames=FALSE)
> 
> table.SHA1 <- dir("tables")
> table.commits <- all.commits[table.SHA1, ]
> index <- paste0("tables/", table.SHA1, "/index.html")
> th.pattern <-
+   paste0("<TH> ",
+          "(?<label>[^ <]+)")
> column.labels <- c()
> for(index.file in index){
+   ilines <- readLines(index.file)
+   th.line <- grep("<TH>", ilines, value=TRUE)
+   label.mat <- str_match_all_perl(th.line, th.pattern)[[1]]
+   label <- label.mat[-1, "label"]
+   label <- label[label != "ggplot2"]
+   column.labels[[index.file]] <- paste(label, collapse = "<br />")
+ }
Error in str_match_all_perl(th.line, th.pattern)[[1]] : 
  subscript out of bounds
Execution halted
make: *** [table.html] Error 1
cpsievert commented 9 years ago

Let me know if you'd like to see any more output...

cpsievert commented 9 years ago

I've got another reason for you to love R versioning @tdhock ;)

I'm pretty sure this error is due to a difference in xtable 1.7-3 & 1.7-4. If you look at the top of the NEWS file, HTML tags were changed to be lowercase. You are assuming uppercase here and here

tdhock commented 9 years ago

haha, another problem due to the versionless R packaging system! glad you were able to figure it out though. I will update xtable and then update the regular expression the next time I run the code.