I have always found startup profile files of other people both useful and instructive about the language. Moreover, while I have some customization for Bash and Vim, I have nothing for R.
For example, one thing I always wanted is different colors for input and output text in a window terminal, and maybe even syntax highlighting.
Make data.frames display somewhat like 'head', only without having to type 'head'
(From How to make 'head' be applied automatically to output? )
Here's mine, including some of the mentioned ideas.
Two things you might want to look at:
.
I use the following to get cacheSweave (or pgfSweave) to work with the "Compile PDF" button in RStudio:
I have an environment variable R_USER_WORKSPACE which points to the top directory of my packages. In .Rprofile I define a function devlib which sets the working directory (so that data() works) and sources all .R files in the R subdirectory. It is quite similar to Hadley's l() function above.
I often have a chain of debug calls I need to call and uncommenting them can be very tedious. With the help of the SO community, I went for the following solution and inserted this into my
.Rprofile.site
.# BROWSER
is there for my Eclipse Tasks so that I have an overview of browser calls in the Task View window.Here are mine: