Rpad/HTML pages in working directory (click on the link to load the file): .threecolumns = function(lst) { n = length(lst) if (n <= 3) return(as.matrix(lst)) ncol = 3 nrow = ceiling(n / ncol) lst = as.matrix(append(lst, rep("", ncol * nrow - n))) dim(lst) = c(nrow, ncol) lst } .rpadfiles = grep('\\.html$|\\.rpad$', dir(), ignore.case = TRUE, value = TRUE) .rpadfiles = H("a", href = .rpadfiles, collapseContents = FALSE, .rpadfiles) .rpadfiles = .threecolumns(.rpadfiles) HTMLon() Html(.rpadfiles) Objects in user's workspace: # print(ls.str(), wid = 40, nchar.max = 20, vec.len=2) ls() Enter R code here and press or F9 to run it: |
Help Rpad documentationServer notes Rpad Demos General ExampleDojo Test Page Input Examples Rpad Widgets Dojo Events Links Tom Short's R refcardMatt Baggot's R refcard v2 Liu's R refcard Rpad homepage R homepage |