Mercurial > repos > mingchen0919 > aurora_fastqc_site
annotate index.Rmd @ 2:c64267b9f754 draft default tip
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
author | mingchen0919 |
---|---|
date | Sun, 30 Dec 2018 12:48:14 -0500 |
parents | b7c115edd970 |
children |
rev | line source |
---|---|
0 | 1 |
2 | |
2
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
3 ```{css, echo=FALSE} |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
4 pre code, pre, code { |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
5 white-space: pre !important; |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
6 overflow-x: scroll !important; |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
7 word-break: keep-all !important; |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
8 word-wrap: initial !important; |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
9 } |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
10 ``` |
0 | 11 |
2
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
12 ```{r, echo=FALSE} |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
13 # to make the css theme to work, <link></link> tags cannot be added directly |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
14 # as <script></script> tags as below. |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
15 # it has to be added using a code chunk with the htmltool functions!!! |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
16 css_link = tags$link() |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
17 css_link$attribs = list(rel="stylesheet", href="vakata-jstree-3.3.5/dist/themes/default/style.min.css") |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
18 css_link |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
19 ``` |
0 | 20 |
2
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
21 ```{r, eval=FALSE, echo=FALSE} |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
22 # this code chunk is purely for adding comments |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
23 # below is to add jQuery and jstree javascripts |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
24 ``` |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
25 |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
26 <script src="vakata-jstree-3.3.5/dist/jstree.min.js"></script> |
0 | 27 |
28 | |
2
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
29 ```{r, eval=FALSE, echo=FALSE} |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
30 # this code chunk is purely for adding comments |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
31 # javascript code below is to build the file tree interface |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
32 # see this for how to implement opening hyperlink: https://stackoverflow.com/questions/18611317/how-to-get-i-get-leaf-nodes-in-jstree-to-open-their-hyperlink-when-clicked-when |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
33 ``` |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
34 <script> |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
35 jQuery(function () { |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
36 // create an instance when the DOM is ready |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
37 jQuery('#jstree').jstree().bind("select_node.jstree", function (e, data) { |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
38 window.open( data.node.a_attr.href, data.node.a_attr.target ) |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
39 }); |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
40 }); |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
41 </script> |
0 | 42 |
2
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
43 ## Outputs |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
44 |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
45 ```{r, echo=FALSE} |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
46 # create a div container to store the file tree interface |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
47 tags$div( |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
48 id="jstree", |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
49 file_tree(Sys.getenv('REPORT_FILES_PATH')) |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
50 ) |
c64267b9f754
planemo upload commit 841d8b22bf9f1aaed6bfe8344b60617f45b275b2-dirty
mingchen0919
parents:
0
diff
changeset
|
51 ``` |