Mercurial > repos > mingchen0919 > rmarkdown_bdss_client
annotate bdss_client_render.R @ 20:531c00a2acbf draft
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
author | mingchen0919 |
---|---|
date | Sat, 14 Oct 2017 17:15:39 -0400 |
parents | 246cb7315673 |
children |
rev | line source |
---|---|
20
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
1 library(getopt) |
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
2 library(rmarkdown) |
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
3 library(htmltools) |
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
4 library(dplyr) |
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
5 library(RCurl) |
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
6 |
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
7 |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
8 ##============ Sink warnings and errors to a file ============== |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
9 ## use the sink() function to wrap all code within it. |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
10 ##============================================================== |
7
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
11 zz = file('warnings_and_errors.txt') |
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
12 sink(zz) |
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
13 sink(zz, type = 'message') |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
14 ##---------below is the code for rendering .Rmd templates----- |
7
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
15 |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
16 ##=============STEP 1: handle command line arguments========== |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
17 ## |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
18 ##============================================================ |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
19 # column 1: the long flag name |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
20 # column 2: the short flag alias. A SINGLE character string |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
21 # column 3: argument mask |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
22 # 0: no argument |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
23 # 1: argument required |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
24 # 2: argument is optional |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
25 # column 4: date type to which the flag's argument shall be cast. |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
26 # possible values: logical, integer, double, complex, character. |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
27 #------------------------------------------------------------- |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
28 #++++++++++++++++++++ Best practice ++++++++++++++++++++++++++ |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
29 # 1. short flag alias should match the flag in the command section in the XML file. |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
30 # 2. long flag name can be any legal R variable names |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
31 # 3. two names in args_list can have common string but one name should not be a part of another name. |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
32 # for example, one name is "ECHO", if another name is "ECHO_XXX", it will cause problems. |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
33 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
34 ##------- 1. input data --------------------- |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
35 args_list=list() |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
36 args_list$URLS = c('urls', 'i', '1', 'character') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
37 args_list$ECHO = c('echo', 'e', '1', 'character') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
38 ##--------2. output report and outputs -------------- |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
39 args_list$REPORT_HTML = c('report_html', 'r', '1', 'character') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
40 args_list$REPORT_DIR = c('report_dir', 'd', '1', 'character') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
41 args_list$SINK_OUTPUT = c('sink_message', 's', '1', 'character') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
42 ##--------3. Rmd templates in the tool directory ---------- |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
43 args_list$BDSS_CLIENT_RMD = c('bdss_client_rmd', 't', '1', 'character') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
44 |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
45 opt = getopt(t(as.data.frame(args_list))) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
46 |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
47 |
20
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
48 ##=======STEP 2: create report directory (optional)========== |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
49 ## |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
50 ##=========================================================== |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
51 dir.create(opt$report_dir) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
52 |
20
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
53 ##=STEP 3: replace placeholders in .Rmd with argument values= |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
54 ## |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
55 ##=========================================================== |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
56 #++ need to replace placeholders with args values one by one+ |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
57 #----- 01 bdss_client.Rmd ----------------------- |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
58 readLines(opt$bdss_client_rmd) %>% |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
59 (function(x) { |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
60 gsub('URLS', opt$urls, x) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
61 }) %>% |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
62 (function(x) { |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
63 gsub('ECHO', opt$echo, x) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
64 }) %>% |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
65 (function(x) { |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
66 gsub('REPORT_DIR', opt$report_dir, x) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
67 }) %>% |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
68 (function(x) { |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
69 fileConn = file('bdss_client.Rmd') |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
70 writeLines(x, con=fileConn) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
71 close(fileConn) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
72 }) |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
73 |
20
531c00a2acbf
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit b3bd3152ad843fa878cb043b8abb88397ddbba4e-dirty
mingchen0919
parents:
17
diff
changeset
|
74 ##=============STEP 4: render .Rmd templates================= |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
75 ## |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
76 ##=========================================================== |
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
77 render('bdss_client.Rmd', output_file = opt$report_html) |
7
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
78 |
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
79 |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
80 ##--------end of code rendering .Rmd templates---------------- |
7
efb1938c3020
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
mingchen0919
parents:
diff
changeset
|
81 sink() |
17
246cb7315673
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit 65f2ce692f3c46ccea55ee47f3c2cb2f8a2bb36f-dirty
mingchen0919
parents:
9
diff
changeset
|
82 ##=========== End of sinking output============================= |