Mercurial > repos > mingchen0919 > rmarkdown_collection_builder
annotate collection_list_render.R @ 3:cb6efa0f0cb6 draft
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 93b036c66fd754a7af459fa80d3f7f143a68477b-dirty
| author | mingchen0919 |
|---|---|
| date | Mon, 25 Sep 2017 16:33:54 -0400 |
| parents | 56b68a320c0e |
| children | 63e9500cdeec |
| rev | line source |
|---|---|
|
0
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
1 ##======= Handle arguments from command line ======== |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
2 # setup R error handline to go to stderr |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
3 options(show.error.messages=FALSE, |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
4 error=function(){ |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
5 cat(geterrmessage(), file=stderr()) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
6 quit("no", 1, F) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
7 }) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
8 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
9 # we need that to not crash galaxy with an UTF8 error on German LC settings. |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
10 loc = Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
11 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
12 # suppress warning |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
13 options(warn = -1) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
14 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
15 options(stringsAsFactors=FALSE, useFancyQuotes=FALSE) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
16 args = commandArgs(trailingOnly=TRUE) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
17 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
18 suppressPackageStartupMessages({ |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
19 library(getopt) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
20 library(tools) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
21 }) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
22 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
23 # column 1: the long flag name |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
24 # column 2: the short flag alias. A SINGLE character string |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
25 # column 3: argument mask |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
26 # 0: no argument |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
27 # 1: argument required |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
28 # 2: argument is optional |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
29 # column 4: date type to which the flag's argument shall be cast. |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
30 # possible values: logical, integer, double, complex, character. |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
31 ##------- 1. input data --------------------- |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
32 spec_list=list() |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
33 spec_list$FILE_LIST = c('file_list', 'l', '1', 'character') |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
34 spec_list$ECHO = c('echo', 'e', '1', 'character') |
|
2
56b68a320c0e
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 80b6b0f11380afd437d61ad308fdd3985d2ca60b-dirty
mingchen0919
parents:
1
diff
changeset
|
35 spec_list$FORMAT = c('format', 'f', '1', 'character') |
|
0
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
36 ##--------2. output report and outputs -------------- |
|
3
cb6efa0f0cb6
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 93b036c66fd754a7af459fa80d3f7f143a68477b-dirty
mingchen0919
parents:
2
diff
changeset
|
37 spec_list$OUTPUT_HTML = c('list_collection_html', 'r', '1', 'character') |
|
0
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
38 spec_list$OUTPUT_DIR = c('list_collection_dir', 'd', '1', 'character') |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
39 ##--------3. Rmd templates in the tool directory ---------- |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
40 spec_list$LIST_COLLECTION_RMD = c('list_collection_rmd', 't', '1', 'character') |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
41 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
42 spec = t(as.data.frame(spec_list)) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
43 opt = getopt(spec) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
44 ##====== End of arguments handling ========== |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
45 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
46 #------ Load libraries --------- |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
47 library(rmarkdown) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
48 library(htmltools) |
|
1
6be61cb4a1d5
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 6df7b8ef3a603f7792ed5815ff324ede8a7b2b0b-dirty
mingchen0919
parents:
0
diff
changeset
|
49 library(dplyr) |
|
0
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
50 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
51 #----- 1. create the report directory ------------------------ |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
52 system(paste0('mkdir -p ', opt$list_collection_dir)) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
53 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
54 #----- 2. generate Rmd files with Rmd templates -------------- |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
55 # a. templates without placeholder variables: |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
56 # copy templates from tool directory to the working directory. |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
57 # b. templates with placeholder variables: |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
58 # substitute variables with user input values and place them in the working directory. |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
59 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
60 #----- 01 list_collection.Rmd ----------------------- |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
61 readLines(opt$list_collection_rmd) %>% |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
62 (function(x) { |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
63 gsub('ECHO', opt$echo, x) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
64 }) %>% |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
65 (function(x) { |
|
2
56b68a320c0e
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 80b6b0f11380afd437d61ad308fdd3985d2ca60b-dirty
mingchen0919
parents:
1
diff
changeset
|
66 gsub('FORMAT', opt$format, x) |
|
1
6be61cb4a1d5
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 6df7b8ef3a603f7792ed5815ff324ede8a7b2b0b-dirty
mingchen0919
parents:
0
diff
changeset
|
67 }) %>% |
|
6be61cb4a1d5
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 6df7b8ef3a603f7792ed5815ff324ede8a7b2b0b-dirty
mingchen0919
parents:
0
diff
changeset
|
68 (function(x) { |
|
0
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
69 gsub('FILE_LIST', opt$file_list, x) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
70 }) %>% |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
71 (function(x) { |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
72 gsub('OUTPUT_DIR', opt$list_collection_dir, x) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
73 }) %>% |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
74 (function(x) { |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
75 fileConn = file('list_collection.Rmd') |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
76 writeLines(x, con=fileConn) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
77 close(fileConn) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
78 }) |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
79 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
80 #------ 3. render all Rmd files -------- |
|
3
cb6efa0f0cb6
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 93b036c66fd754a7af459fa80d3f7f143a68477b-dirty
mingchen0919
parents:
2
diff
changeset
|
81 render('list_collection.Rmd', output_file = opt$list_collection_html) |
|
cb6efa0f0cb6
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 93b036c66fd754a7af459fa80d3f7f143a68477b-dirty
mingchen0919
parents:
2
diff
changeset
|
82 cat('test') |
|
0
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
83 |
|
78018b735124
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit ec13349788ea42e106b5ba3fc1a5095ed755e644-dirty
mingchen0919
parents:
diff
changeset
|
84 #-------4. manipulate outputs ----------------------------- |
