Hi!
I've just found that while
p <- ggplot(mtcars, aes(factor(cyl), mpg))
works fine in a raw R console, I get the following error in the Rkward console:
> p <- ggplot(mtcars, aes(factor(cyl), mpg))
Error: object 'mpg' not found
Warning message:
failure to get object y
> mpg
manufacturer model displ year cyl trans drv cty hwy fl class
1 audi a4 1.8 1999 4 auto(l5) f 18 29 p compact
> sessionInfo()
R version 2.12.2 (2011-02-25)
Platform: x86_64-pc-linux-gnu (64-bit)
Coincidentally, I had just fixed this in the development version, yesterday (to be precise: in "trunk", only, i.e. this fix will not be included in the upcoming version 0.5.5). So you could try the next daily build (if you like, and if you have updated your Ubuntu, yet ;-) ).
Either way, despite the looks, this error message is harmless. The error does not actually occur while evaluating your code, but rather while RKWard tries to get some info about the object "p" that was created. In effect, the representation of "p" in the workspace browser will be incomplete, but everything else should be fine.
However, while toying with ggplot2, I found that these plots do not currently get added to the plot history. This should be fixed in tomorrow's daily build (but will not be fixed for 0.5.5, either).
Regards
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I've just found that while
p <- ggplot(mtcars, aes(factor(cyl), mpg))
works fine in a raw R console, I get the following error in the Rkward console:
> p <- ggplot(mtcars, aes(factor(cyl), mpg))
Error: object 'mpg' not found
Warning message:
failure to get object y
> mpg
manufacturer model displ year cyl trans drv cty hwy fl class
1 audi a4 1.8 1999 4 auto(l5) f 18 29 p compact
> sessionInfo()
R version 2.12.2 (2011-02-25)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
LC_CTYPE=en_US.utf8 LC_NUMERIC=C
LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8
LC_MONETARY=en_US.utf8 LC_MESSAGES=en_US.utf8
LC_PAPER=en_US.utf8 LC_NAME=en_US.utf8
LC_ADDRESS=en_US.utf8 LC_TELEPHONE=en_US.utf8
LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=en_US.utf8
attached base packages:
grid stats graphics grDevices utils datasets methods
base
other attached packages:
ggplot2_0.8.9 proto_0.3-8 reshape_0.8.4 plyr_1.4 rkward_0.5.5
loaded via a namespace (and not attached):
tools_2.12.2
Any fix to this?
Agus
Hi!
Coincidentally, I had just fixed this in the development version, yesterday (to be precise: in "trunk", only, i.e. this fix will not be included in the upcoming version 0.5.5). So you could try the next daily build (if you like, and if you have updated your Ubuntu, yet ;-) ).
Either way, despite the looks, this error message is harmless. The error does not actually occur while evaluating your code, but rather while RKWard tries to get some info about the object "p" that was created. In effect, the representation of "p" in the workspace browser will be incomplete, but everything else should be fine.
However, while toying with ggplot2, I found that these plots do not currently get added to the plot history. This should be fixed in tomorrow's daily build (but will not be fixed for 0.5.5, either).
Regards
Thomas
Works fine, thanks!
Agus