Markdown for Manuscripts: Enhancements

Today was my first time using markdown for a manuscript methods section (see previous post on getting set up in markdown). It had lots of equations so using LaTeX to write the equations was quite nice. Here’s an example of the markdown code: \\[ \mu_{s,h,d,y} = \left\{ \begin{array}{1 1} \omega_{s,h,d,y} + \delta_{s}(t_{s,h,d-1,y} – \omega_{s,h,d-1,y}) &…

Knitting beautiful documents in RStudio

Title: Knitting Beautiful Documents in RStudio Header: Markdown This document was written using Markdown in RStudio. RStudio is a wonderful IDE for writing R scripts and keeping track of variables, dataframes, history, packages and much more. Markdown is a simple formatting syntax for authoring web pages. It allows for easy formatting, for example # Header…

Building R packages: missing path to pdflatex

Recently whiling trying to build an R package for generalized estimating equation model selection (QICpack on github), I was getting an error related to latex creating the PDF package manuals. It seems like this is a relatively common problem on some versions of Mac OS X, but I did not find it easy to find…

R Workflow

When working with R you end up using a large number of datasets, packages, functions, objects, output files, workspaces, etc.  It can get a bit overwhelming trying to keep everything organized.  That is why a consistent, well-organized workflow is needed.  I definitely do not have one yet.  I’ll post more on script editors and IDEs…