SLiMSuite REST Server


Links
REST Home
EdwardsLab Homepage
EdwardsLab Blog
SLiMSuite Blog
SLiMSuite
Webservers
Genomes
REST Pages
REST Status
REST Help
REST Tools
REST Alias Data
REST API
REST News
REST Sitemap

rje_rmd V0.1.0

R Markdown generation and execution module

Module: rje_rmd
Description: R Markdown generation and execution module
Version: 0.1.0
Last Edit: 01/02/21

Copyright © 2019 Richard J. Edwards - See source code for GNU License Notice


Imported modules: rje rje_obj


See SLiMSuite Blog for further documentation. See rje for general commands.

Function

The function of this module will be added here.

The R markdown itself is run using:

Rscript -e 'library(rmarkdown); rmarkdown::render("/path/to/test.Rmd", "html_document")'

NOTE: The "html_document" over-rules the content of the file itself, e.g. "pdf_document" can turn it into a PDF rather than HTML.

NOTE: Running the above generates a *.html file in the same place as the *.Rmd file (not the run directory).

NOTE: For HTML output, R must be installed and a pandoc environment variable must be set, e.g.

export RSTUDIO_PANDOC=/Applications/RStudio.app/Contents/MacOS/pandoc

Commandline


History Module Version History

    # 0.0.0 - Initial Compilation.
    # 0.1.0 - Added docHTML.

© 2015 RJ Edwards. Contact: richard.edwards@unsw.edu.au.