Mercurial > repos > mingchen0919 > elastic_expose_data
comparison individuals_render.R @ 4:9ff33a3631fa draft
planemo upload commit 979e0f1c28c74ca7df02ef20c2208e9677bc820a-dirty
author | mingchen0919 |
---|---|
date | Mon, 02 Apr 2018 08:32:59 -0400 |
parents | 5838300fc1aa |
children |
comparison
equal
deleted
inserted
replaced
3:5838300fc1aa | 4:9ff33a3631fa |
---|---|
17 | 17 |
18 #------------------------------------------------ | 18 #------------------------------------------------ |
19 # create three folders within working directory | 19 # create three folders within working directory |
20 dir.create('individual_outputs') | 20 dir.create('individual_outputs') |
21 | 21 |
22 job_working_dir = getwd() | |
23 individual_outputs_path = paste0(job_working_dir, '/individual_outputs/') | |
24 | |
22 #-----------------render Rmd-------------- | 25 #-----------------render Rmd-------------- |
23 # copy R markdown file to working directory and render it within the working directory. | 26 # copy R markdown file to working directory and render it within the working directory. |
24 render(paste0(Sys.getenv('TOOL_INSTALL_DIR'), '/paired.Rmd'), | 27 render(paste0(Sys.getenv('TOOL_INSTALL_DIR'), '/individuals.Rmd'), |
25 output_file = paste0(Sys.getenv('REPORT_FILES_PATH'), '/report.html')) | 28 output_file = paste0(Sys.getenv('REPORT_FILES_PATH'), '/report.html')) |
26 | 29 |
27 # for some unknow reason, directly using REPORT as the input value for output_file parameter | 30 # for some unknow reason, directly using REPORT as the input value for output_file parameter |
28 # in the render function can cause empty report file when the tool runs in batch mode. | 31 # in the render function can cause empty report file when the tool runs in batch mode. |
29 # the solution is to render the rmarkdown to a explicitly specified file and then copy the | 32 # the solution is to render the rmarkdown to a explicitly specified file and then copy the |