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