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
################################################################################ | |
all:pdf # default rule DO NOT EDIT | |
################################################################################ | |
MAINFILE := main | |
RNWFILES := | |
RFILES := | |
TEXFILES := | |
CACHEDIR := cache | |
FIGUREDIR := figures | |
DRIVER := pgfSweave |
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
#' formats proc_time as a "hh:mm:ss" time string | |
#' | |
#' @seeAlso print.proc_time, proc.time | |
#' | |
formatTime <- function(x){ | |
stopifnot(inherits(x, "proc_time")) | |
h <- x %/% 3600L | |
m <- (x %% 3600L) %/% 60L | |
s <- x %% 60L | |
ifelse(is.na(x), NA, sprintf("%02d:%02d:%2.2f",h,m,s)) |
NewerOlder