Mercurial > repos > mingchen0919 > rmarkdown_feature_counts
changeset 12:7a2369ab4f84 draft
update
author | mingchen0919 |
---|---|
date | Fri, 29 Dec 2017 14:24:54 -0500 |
parents | 238d57ce7d74 |
children | eb51eca6cdf1 |
files | rmarkdown_feature_counts_render.R |
diffstat | 1 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/rmarkdown_feature_counts_render.R Fri Dec 29 14:07:35 2017 -0500 +++ b/rmarkdown_feature_counts_render.R Fri Dec 29 14:24:54 2017 -0500 @@ -1,16 +1,19 @@ -library(getopt) -library(rmarkdown) -library(htmltools) -library(dplyr) -library(Rsubread) -library(DT) - ##============ Sink warnings and errors to a file ============== ## use the sink() function to wrap all code within it. ##============================================================== zz = file('warnings_and_errors.txt') sink(zz) sink(zz, type = 'message') + + ##============== load packages =============================== + library(getopt) + library(rmarkdown) + library(htmltools) + library(dplyr) + library(Rsubread) + library(DT) + ##============================================================ + ##---------below is the code for rendering .Rmd templates----- ##=============STEP 1: handle command line arguments==========