recently, i've been using some reasonably large data sets (nrow = 1E5-1E6, ncol=7).
e.g. :
size=100000
dum=data.frame( a=rnorm(size), b=runif(size), c=rnorm(size) )
I occasionally, i'll insert a new line into my ggplot command and forget the +. For example, say i had a much longer set of commands but then i wanted to put a vertical line in on the bottom layer:
ggplot(dum, aes(x=b,y=a)) + geom_vline(xint=0)
## other previous commands down here are ignored
I get the following error,
Error in as.environment(where) : 'where' is missing
and I can understand this but the real problem is that (it seems) when the data sets get large, it takes increasingly long for this error to be produced. (The above code should demonstrate this.) Sometimes I'll wait minutes and I have killed my R session in a few cases because I thought there was no hope it would ever return.
If there is a way, i think it would be desirable to prevent this behavior. That's my entire suggestion. I have no idea how to do it.
I did notice that if I wrap the statement in print(), it seems to return MUCH faster. So maybe there is hope.
Lastly, thanks for all ya'll's work!
James
--
-