ProjectTemplate for R

ProjectTemplate is a system for automating the thoughtless parts of a data analysis project

Just read the overview. If you are not already doing these things, by any means, then see what this package has to offer immediately. It will make your life better.
If you are not convinced yet, then read the sections listed on the left. They do so, so much.
One nice example is the great flexibility provided in its configuration. For example, automatically converting loaded data.frame to data.table is just one flag, very nice.

Milwaukee Data Science: Making Sense of Data Science via a Metromap & Lightning Talks

This could be the start of something valuable community; can’t wait to see wherever it leads!

Sometimes R segfaults with quartz

R plotting crashed a lot on OSX on my system:

archey
R --version
brew --version
                 ###
               ####                   User: gcr
               ###                    Hostname: orion
       #######    #######             Distro: OS X 10.9.3
     ######################           Kernel: Darwin
    #####################             Uptime: 2 days
    ####################              Shell: /usr/local/bin/bash
    ####################              Terminal: dumb
    #####################             Packages: 78
     ######################           CPU: Intel Core i7-4960HQ CPU @ 2.60GHz
      ####################            Memory: 16 GB
        ################              Disk: 26%
         ####     #####
R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.2.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.
0.9.5

Almost every time that I would use the quartz device, ℝ would segfault.

After changing it to X11, there have not been any segfaults. Perhaps I misunderstood the relationship between how the Brew build interacts with quartz.

How to clean up environment bindings in knitr sub modules?

This post discusses the management of the environment while running different
parts of the code. The author’s desire is to:

  • Obtain a list of bindings before execution sub-module
  • Execute the code in the sub-module
  • Upon completion of the sub-mode code execution remove anything that was added
    to the environment

Can definitely understand the desire. The approach makes total sense.

Perhaps now is the time for me to learn more about packages and whether that would be
a good approach here. Even running everything inside of a local block could be
an option perhaps?