Blog Archives

formatR update (0.1-6)

January 6, 2011
By

A new version of the formatR package is available on CRAN now (binary packages are still on the way). There are three major updates: the inline comments will also be preserved in most cases (in earlier versions, only single lines of comments are pres...

Read more »

Customizing the Theme of Your R HTML Help

January 4, 2011
By
Customizing the Theme of Your R HTML Help

R’s default theme of the HTML help pages is too plain for me to read, but we can easily modify the theme, which is essentially a CSS file. You can find the file under: file.path(R.home('doc'), 'html', 'R.css') Simply replace this file with my version: which looks like: Of course you can design your own R.css

Read more »

Customizing the Theme of Your R HTML Help

January 4, 2011
By
Customizing the Theme of Your R HTML Help

R's default theme of the HTML help pages is too plain for me to read, but we can easily modify the theme, which is essentially a CSS file. You can find the file under: file.path(R.home('doc'), 'html', 'R.css') Simply replac...

Read more »

Happy New Year with R (2011, Fireworks!)

January 1, 2011
By
Happy New Year with R (2011, Fireworks!)

Last year I posted an animation created in R to celebrate the new year, and this year I've got a more fabulous animation (available on CRAN) The above animation comes from the demo('fireworks') in the R package animation 2.0-0. Thanks for the contri...

Read more »

Happy New Year with R (2011, Fireworks!)

January 1, 2011
By
Happy New Year with R (2011, Fireworks!)

ast year I posted an animation created in R to celebrate the new year, and this year I’ve got a more fabulous animation. Unfortunately our Lord of CRAN (Kurt) has been out of office for several days, so I’m unable to publish my animation package on CRAN as scheduled. Anyway, for those who are curious

Read more »

A Special Graphics Device in R: the Null Device

December 22, 2010
By

It is well-known that R has several graphics devices — either the screen devices (X11(), windows(), …) or the off-screen devices (pdf(), png(), …). We can query the default graphics device in options(): getOption('device') In a non-interactive session, the default device is pdf(). This is why Sweave has to create a file named Rplots.pdf no

Read more »

A Special Graphics Device in R: the Null Device

December 22, 2010
By

It is well-known that R has several graphics devices -- either the screen devices (X11(), windows(), ...) or the off-screen devices (pdf(), png(), ...). We can query the default graphics device in options(): getOption('device') In a non-in...

Read more »

formatR update (0.1-5)

December 3, 2010
By

he formatR package has been silent for quite a few months now. Recently I’ve been moving my old packages from R-Forge to GitHub, and I finally killed several things on my TODO list. In the past, I made an awkward decision to let formatR depend on the animation package, which was ridiculous. Ronggui suggested me

Read more »

Rd2roxygen: Convert Rd to roxygen documentation

December 1, 2010
By

must admit that I have been tired of maintaining my R packages for a long time, and the main reason is I feel really uncomfortable with writing R documentations (Rd). The required structure of an R package mainly includes two directories R and man — the former for the R source code (typically functions), and

Read more »

How to Start Using (pgf)Sweave in LyX in One Minute

October 30, 2010
By

regor Gorjanc published an interesting article “Using Sweave with LyX” in R News in 2008, which (I believe) makes it much easier to use Sweave. I use command-line tools a lot every day, but I am still “GUI-addicted”. (I don’t want to comment more about Microsoft Word here.) LyX is a somewhat WYSIWYG tool based

Read more »