Posts Tagged ‘ Emacs ’

Highlight the R syntax on your (WordPress) blog using the wp-syntax plugin

February 12, 2010
By
Highlight the R syntax on your (WordPress) blog using the wp-syntax plugin

Download link for WP-Syntax plugin (with GeSHi version 1.0.8.6) In case you have a self hosted Wordpress blog, and you wish to show your R code in it, how would you do it? The simplest solution would be to just paste the code as plain text, which will look like this: x <- rnorm(100, mean = 2, sd = 3) plot(x, xlab =...

Read more »

Editing while running R within Emacs

October 20, 2009
By
Editing while running R within Emacs

Simply press "Ctrl + g" will return the control back to the user.

Read more »

Making Emacs Buffer Names Unique Using the Uniquify Package

October 5, 2009
By
Making Emacs Buffer Names Unique Using the Uniquify Package

If you ever work in Emacs with different files that all have the same name, this tip may be very useful for you. In my experience, this most often happens when working with Makefiles from multiple projects or directories. Assuming you have a buffer visiting a file called Makefile, by default Emacs will call the

Read more »

Using doc-view with auto-revert to view LaTeX PDF output in Emacs

October 3, 2009
By
Using doc-view with auto-revert to view LaTeX PDF output in Emacs

When I am authoring a document in Emacs, such as a report or my CV, it is useful for me to compile the source file periodically to see what the resulting file PDF looks like. I used to run a separate PDF viewer to look at the output, but I now have a complete Emacs

Read more »

R Object Tooltips in ESS

October 1, 2009
By
R Object Tooltips in ESS

Whether at work or for personal projects, I use ESS a lot to perform interactive data analyses. The ability to write, edit, and submit R commands to an interactive R process is simply something I cannot imagine analyzing data without. An example One thing that I end up having to do a lot is inspect

Read more »

Emacs Key Binding for eval-defun in lisp-mode

September 22, 2009
By
Emacs Key Binding for eval-defun in lisp-mode

When I use R in Emacs through the ESS package, C-c C-c in a .R buffer will send a “block” of code to the inferior R process for evaluation. This was added just a few years ago, but my fingers are now trained to use that key combination for evaluating any block of code. Since

Read more »

Welcome to Blogistic Reflections! (A blog created entirely in Emacs org-mode)

September 19, 2009
By
Welcome to Blogistic Reflections! (A blog created entirely in Emacs org-mode)

John Tukey’s preface to Exploratory Data Analysis begins with a useful rule, “It is important to understand what you can do before you learn to measure how well you seem to have done it.” When I decided I wanted to start a blog concentrating on statistics, R, and Emacs, I thought I had better learn

Read more »

Run a remote R session in emacs: emacs + ESS + R + ssh

June 1, 2009
By

I don’t know how, but somehow, i stumbled on how to do this. I’ve always used emacs with ESS to run R, since spring 2006 (did it on windows, switched to linux, for years, and most recently, on my macbook). I liked this because i get the same usual interface across ALL platforms (well, maybe

Read more »

Emacs: AucTeX + Rubber + Sweave

May 30, 2009
By

I got rubber to work with auctex and sweave (Rnw) files with the help of this. Basically, combined with my other stuff, I tweaked my .emacs file to look like: ;;following is AucTeX with Sweave -- works ;;http://andreas.kiermeier.googlepages.com/essmaterials (setq TeX-file-extensions '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo")) (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode)) (add-to-list

Read more »