messages from 1.8 - or ggplot2? #122

Closed
davidcarslaw opened this Issue Dec 7, 2012 · 12 comments

Comments

Projects
None yet
5 participants

I've just updated to ggplot2 0.9.3 and plyr 1.8 and have this issue:

ggplot(mtcars, aes(x=mpg)) + geom_density()
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following from values were not present in x: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max

sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] ggplot2_0.9.3

loaded via a namespace (and not attached):
[1] colorspace_1.2-0 dichromat_1.2-4 digest_0.6.0 grid_2.15.2 gtable_0.1.2 labeling_0.1
[7] MASS_7.3-22 munsell_0.4 plyr_1.8 proto_0.3-9.2 RColorBrewer_1.0-5 Rcpp_0.10.1
[13] reshape2_1.2.2 scales_0.2.3 stringr_0.6.2 tools_2.15.2

jrowen commented Dec 7, 2012

I see the same error with ggplot2 0.9.3 and plyr 1.8 on Windows. As a temporary fix, rolling plyr back to the source version 1.7 on CRAN got rid of the messages (version 1.7.1 generated an error related to split_indices: n smaller than largest index).

Owner

hadley commented Dec 7, 2012

That's an indication something went wrong with your update of plyr - I'd suggest restarting R and reinstalling plyr.

jrowen commented Dec 7, 2012

Thanks for the suggestion. Removing plyr, restarting R, and then installing plyr 1.7.1 from source fixed the split_indices error.

Odd, this. I had to install both plyr 1.8 and ggplot 0.9.3 from source. When I used update.packages it didn't work, but all fine now...

Cheers
David

jrowen commented Dec 7, 2012

I experienced the same behavior--installing both from source eliminated the messages.

Collaborator

wch commented Dec 7, 2012

@dcckc, do you automatically load some packages on startup? The reason I ask is because in your sessionInfo, I see that there are some packages listed under loaded via namespace that aren't imported by ggplot2, even though ggplot2 is the only attached package. When I start up R and do libary(ggplot2), I have fewer packages listed there. These extra packages are Rcpp and tools.

That's a very good point Winston and likely not helpful. This is using RStudio 0.97.231. When I start R from the command line these extra packages are not loaded. I hadn't noticed that before but that could explain a few other issues I haven't pinned down recently. Well observed! I'll investigate further...

jrowen commented Dec 7, 2012

I think we're getting closer here. I also used RStudio on Win7 to upgrade both packages via the built-in functionality.

wch referenced this issue in tidyverse/ggplot2 Dec 7, 2012

Closed

plyr 1.8 breaks ggplot2 0.9.3 (?) #737

Collaborator

wch commented Dec 10, 2012

One person I talked to made it work by installing ggplot2 and plyr in the R GUI (not in RStudio). Can you guys try that and let me know if it works?

I'm using Windows 7 with the latest RStudio and I've been getting the same messages since upgrading ggplot2 and plyr a couple of days ago (around 12/26/12). Uninstalling plyr and ggplot2 and reinstalling did not seem to work in RStudio. I did that in RGui and the first try did not work (or I screwed something up) but the second attempt did. So perhaps it would have if I had been more persistent in RStudio.

By the way, I had restarted RStudio many times before searching for this message & that didn't help. My reinstalls were done using install.packages from the TN CRAN mirror, not from source.

Owner

hadley commented Jan 2, 2014

Is this still a problem? I think rstudio now has functionality to ensure that packages are reinstalled cleanly.

hadley closed this Jan 2, 2014

seems fine for me anyway...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment