Learning R: Using Sweave on OS X 10.6 and fix the Sweave.sty problem

This blog shows a very clear tutorial on how connecting R-sweave to your Latex system. R-sweave (you can see it in the “New” button >> “R Sweave”) is a facility in R environment to generate neat report based on your R code. This function allows us to make a document report of your R codes, on Latex format. The fun thing is R-sweave will run your codes then put it in your Latex doc report automatically.

For you that are “still” using MS Word, you’ll have to copy-paste your R codes to the Word doc back and forth (but there’s “Pandoc” or “Pander” package that do the converting for you.

Thanks to Friedrich Leisch for sharing the tutorial.

About the author

My current focus is how to provide the hydrostratigraphy of volcanic aquifers in Bandung area. The research is based on environmental isotope measurement in groundwater and morphometry. My work consists of hydrochemical measurements. I am using multivariate statistical methods to provides more quantitative foundation for the analysis and more insight into the groundwater behavior, especially its interaction with surface water. I use open source apps like R and Python to do the job. In my spare time, I also have a side project to promote open science in Indonesia's research workflow. One of my current focus is promoting INARxiv, as the first preprint server of Indonesia (osf.io/preprints/inarxiv) and serving as ORCID and OSF (osf.io) ambassador. Research interest: Hydrochemistry, multivariate analysis, and R programming. Blog: dasaptaerwin.net, derwinirawan.wordpress.com. (https://orcid.org/0000-0002-1526-0863)