In this task you will use pandoc to convert the .tex file to .md, then programatically edit the markdown file before rendering to PDF in the R Journal style.
Write an R function, or set of R functions to do the following:
Convert RJwrapper.tex to markdown using rmarkdown::pandoc_convert().
Programmatically edit the .md file to add a YAML header, with the following fields
title: specified via an argument to your function
bibliography: specified via an argument to your function
output: set to rjtools::rjournal_web_article
Save the updated file as an .Rmd file in a new outputs directory.
Copy files required for rendering the new .Rmd (any images and .bib files) to the new outputs directory.
Compile the updated .Rmd file to produce an HTML output.
Show how to use your R code to create an HTML output in the R Journal style from the source files of one of the example articles. Put your code and your example script in a public GitHub repository and put a link to the repository in a comment on this issue.
You'll see the edits made in your function will only fix some of the conversion issues - improving on this result will be a focus of the internship.
In this task you will use pandoc to convert the
.tex
file to.md
, then programatically edit the markdown file before rendering to PDF in the R Journal style.Write an R function, or set of R functions to do the following:
RJwrapper.tex
to markdown usingrmarkdown::pandoc_convert()
..md
file to add a YAML header, with the following fieldstitle
: specified via an argument to your functionbibliography
: specified via an argument to your functionoutput
: set torjtools::rjournal_web_article
.Rmd
file in a new outputs directory..Rmd
(any images and.bib
files) to the new outputs directory..Rmd
file to produce an HTML output.Show how to use your R code to create an HTML output in the R Journal style from the source files of one of the example articles. Put your code and your example script in a public GitHub repository and put a link to the repository in a comment on this issue.
You'll see the edits made in your function will only fix some of the conversion issues - improving on this result will be a focus of the internship.