Capturing contents within Curly Brackets

OK, just a quickie here. I’m working with a colleague on a manuscript using LaTeX.  The citation formatting for the journal we are looking at uses the numerical citations but bibtex will number the citations by the order in which the \bibitem  values they occur in the bibliography section.  So, it would be great to get them to be in the order in which they occur in the text.

So, our old friend (and sometimes enemy) grep comes to the rescue.  Here is a quick one-liner that allows you to search the text for all the \cite{}  entries and return only the contents within the curly brackets.

Once all the editing is done and we’ve finished on the main body of the text, we can reorder the bibliography section and the numbers will be incremental.

Sometimes I forget how awesome and powerful the unix underpinnings are.


OK, so there is a bit of a circular firing squad going on in some of my R installs with ggplot2.  Apparently, you can get various CRAN/Github versions out of sync and a whole host of different.  Here is how it started:

Read more

R Post of the Day

Fancy pie chart (thanks, yihui, you are a genius):

New Job

New Job

I have accepted and begun working as the Director of the Center for Environmental Studies at Virginia Commonwealth University.  The Center is a chartered research center whose mission is to…  Well, do whatever I think it will do to produce the best research and educational opportunities for our undergraduate and graduate students.  We train applied scientists.

The Center has about 10 FTE faculty, a lot of which are shared among groups (e.g., half biology/half CES, half business/half CES, etc.) and several quality adjunct instructors.  We have about 250 undergraduates, 40 Masters-level graduate students in the program, and several individuals with Ph.D. students in the Integrative Life Sciences program.