rgui

A better GUI for R

I really love to see something like Reinteract for R. I have been battling with the sourcecode of Reinteract to be able to run it for R. (It is in Python) any ideas on how one may get it to work for R? it is a very useful kind of editor ...

R Language: Import multiline SQL query to single string

In R, how can I import the contents of a multiline text file (containing SQL) to a single string? The sql.txt file looks like this: SELECT TOP 100 setpoint, tph FROM rates I need to import that text file into an R string such that it looks like this: > sqlString [1] "SELECT TOP 100 setpoint, tph FROM rates" That's so that I ...

R ggplot2 - no background or grid lines in plot with RGui

I'm having a strange problem with the output window in RGui (under Win XP). I should see a plot like the one below... ... when I run this script: library(ggplot2) x <- rnorm(100,0,1) y <- rnorm(100,0,1) z <- data.frame(x,y) g <- ggplot(z, aes(x,y)) + geom_point() + theme_gray() Instead, in the plot window it shows a white backgrou...