I am trying to figure out how to write a manuscript in R markdown. I am going to pen down all the issues that I face along the way on a Mac OSX 10.11.
- Create a project folder and a subdirectory ‘doc’ to save the manuscripts.
- RStudio -> File -> New File -> RMarkdown.
- Install, pandoc brew install pandoc
- Install TinyTex using tinytex::install_tinytex()
- To facilitate the installtion : tlmgr install collection-fontsrecommended
- If there is an error : LaTeX Error: File
framed.sty
not found - I) Do the following on Terminal- i) sudo tlmgr install titling ii)sudo tlmgr update –self iii) sudo tlmgr install framed - Update TinyTex with devtools::install_github(‘yihui/tinytex’)
- Create a .bib file with all the citation keys and cite using, [@CiteKey].
Also, here is a link to the StackOverflow question I asked with respect to this issue.
Happy Writing!!