# HG changeset patch # User mingchen0919 # Date 1519490557 18000 # Node ID 9cf29b2374a60f481130f5085ade74f59ee3754b # Parent 670e1591cc6566eecbda8d55799b593f6771afdc 1.1.0 diff -r 670e1591cc65 -r 9cf29b2374a6 extract_fields.xml --- a/extract_fields.xml Sat Feb 24 10:44:30 2018 -0500 +++ b/extract_fields.xml Sat Feb 24 11:42:37 2018 -0500 @@ -1,4 +1,4 @@ - + pandoc r-getopt @@ -10,16 +10,16 @@ - diff -r 670e1591cc65 -r 9cf29b2374a6 tool_template.Rmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_template.Rmd Sat Feb 24 11:42:37 2018 -0500 @@ -0,0 +1,30 @@ +--- +title: "tool_template.Rmd" +author: "Ming Chen" +date: "2/24/2018" +output: html_document +--- + +```{r setup, include=FALSE} +knitr::opts_chunk$set(echo = TRUE) +``` + +## R Markdown + +This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see . + +When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: + +```{r cars} +summary(cars) +``` + +## Including Plots + +You can also embed plots, for example: + +```{r pressure, echo=FALSE} +plot(pressure) +``` + +Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. diff -r 670e1591cc65 -r 9cf29b2374a6 tool_template_render.R --- a/tool_template_render.R Sat Feb 24 10:44:30 2018 -0500 +++ b/tool_template_render.R Sat Feb 24 11:42:37 2018 -0500 @@ -23,5 +23,5 @@ extract_field_command = paste0("awk '{print ", X_A, " }' ", opt$X_B, " > ", opt$X_O) system(command = extract_field_command) - +rmarkdown::render(input = opt$X_t, output_file = opt$X_r) sink()