changeset 2:e08dd15646c6 draft

planemo upload commit 004a320fc0619c234164b44c64ba5dce205734e1-dirty
author mingchen0919
date Thu, 13 Dec 2018 23:45:31 -0500
parents fd547674f29f
children 6a3bbafa24b3
files rmarkdown_report.Rmd
diffstat 1 files changed, 10 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/rmarkdown_report.Rmd	Thu Dec 13 23:10:32 2018 -0500
+++ b/rmarkdown_report.Rmd	Thu Dec 13 23:45:31 2018 -0500
@@ -9,8 +9,7 @@
 knitr::opts_chunk$set(error = TRUE, echo = FALSE)
 ```
 
-```{css echo=FALSE}
-# code chunks scrollable
+```{css, echo=FALSE}
 pre code, pre, code {
   white-space: pre !important;
   overflow-x: scroll !important;
@@ -19,7 +18,6 @@
 }
 ```
 
-
 ```{r, echo=FALSE}
 # to make the css theme to work, <link></link> tags cannot be added directly 
 # as <script></script> tags as below.
@@ -33,43 +31,30 @@
 # this code chunk is purely for adding comments
 # below is to add jQuery and jstree javascripts
 ```
-<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
+
 <script src="vakata-jstree-3.3.5/dist/jstree.min.js"></script>
 
+
 ```{r, eval=FALSE, echo=FALSE}
-# The script below is used to avoid conflicts between different javascript labraries
-```
-
-<script>
-jQuery.noConflict();
- 
-jQuery( document ).ready(function( $ ) {
-    // You can use the locally-scoped $ in here as an alias to jQuery.
-    $( "jstree" ).hide();
-});
-
-// The $ variable in the global scope has the prototype.js meaning.
-window.onload = function(){
-    var mainDiv = $( "main" );
-}
-</script>
-
----
+# this code chunk is purely for adding comments
 # javascript code below is to build the file tree interface
 # 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
----
+```
 <script>
-  $(function () {
+  jQuery(function () {
     // create an instance when the DOM is ready
-    $('#jstree').jstree().bind("select_node.jstree", function (e, data) {
+    jQuery('#jstree').jstree().bind("select_node.jstree", function (e, data) {
      window.open( data.node.a_attr.href, data.node.a_attr.target )
     });
   });
 </script>
 
+
+```{r, eval=FALSE, echo=FALSE}
 ---
 # ADD YOUR DATA ANALYSIS CODE AND MARKUP TEXT BELOW TO EXTEND THIS R MARKDOWN FILE
 ---
+```
 
 ## Job script