ellisp / ggseas

seasonal adjustment on the fly extension for ggplot2
GNU General Public License v3.0
74 stars 5 forks source link

New ggplot broke ggseas? #19

Closed Rmadillo closed 8 years ago

Rmadillo commented 8 years ago

I'm getting this error in the first time using ggseas after upgrading to R 3.3.2 and ggplot2 2.2.0

Error: StatSeas was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.
Execution halted

Exited with status 1.
ellisp commented 8 years ago

I wondered if this would happen, but it's working ok with me. Maybe try re-installing ggseas again from CRAN:

install.packages("ggseas")
example(stat_stl)

If it still happens after that could you paste the output of sessionInfo() into a comment on this issue?

Rmadillo commented 8 years ago

Yep, tried reinstall, same problem:

> library(ggseas)
> example("stat_stl")

stt_st> ap_df <- tsdf(AirPassengers)

stt_st> # periodic if fixed seasonality; doesn't work well:
stt_st> ggplot(ap_df, aes(x = x, y = y)) +
stt_st+    stat_stl(s.window = "periodic")
Error: StatSTL was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.

Here's the sessioninfo:

R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X Yosemite 10.10.5

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] car_2.1-3          fitdistrplus_1.0-7 survival_2.40-1    MASS_7.3-45        gridExtra_2.2.1   
 [6] ggExtra_0.6        knitr_1.15         bookdown_0.2       qicharts_0.5.1     ggseas_0.5.1      
[11] ggplot2_2.2.0      seasonal_1.3.0     forecast_7.3       timeDate_3012.100  zoo_1.7-13        
[16] lubridate_1.6.0    scales_0.4.1       dplyr_0.5.0       

loaded via a namespace (and not attached):
 [1] ggrepel_0.6.3       Rcpp_0.12.8         locfit_1.5-9.1      lattice_0.20-34     assertthat_0.1     
 [6] digest_0.6.10       mime_0.5            R6_2.2.0            plyr_1.8.4          MatrixModels_0.4-1 
[11] trend_0.2.0         evaluate_0.10       lazyeval_0.2.0      minqa_1.2.4         x13binary_0.1.2    
[16] SparseM_1.74        miniUI_0.1.1        fracdiff_1.4-2      nloptr_1.0.4        Matrix_1.2-7.1     
[21] rmarkdown_1.1       labeling_0.3        splines_3.3.2       lme4_1.1-12         stringr_1.1.0      
[26] munsell_0.4.3       shiny_0.14.2        httpuv_1.3.3        mgcv_1.8-16         htmltools_0.3.5    
[31] nnet_7.3-12         tibble_1.2          quadprog_1.5-5      leaps_2.9           grid_3.3.2         
[36] nlme_3.1-128        xtable_1.8-2        gtable_0.2.0        DBI_0.5-1           magrittr_1.5       
[41] stringi_1.1.2       tseries_0.10-35     TSA_1.01            latticeExtra_0.6-28 RColorBrewer_1.1-2 
[46] tools_3.3.2         parallel_3.3.2      pbkrtest_0.4-6      yaml_2.1.14         colorspace_1.3-1   
[51] quantreg_5.29   
ellisp commented 8 years ago

OK, sorry about this, I don't know what the problem is. I just did clean installs of ggplot2 and ggseas on both Windows and Ubuntu and both are fine. I don't have access to a Mac but will ask a friend, in case that's it. It did work before, right?

I don't really have any advice, other than to try reinstalling ggplot2 as well (can't see how that would help seeing as that must have been your starting point that caused the problem...), or maybe trying the devtools::install_github("ellisp/ggseas/pkg") approach (ditto but maybe worth a try).

Rmadillo commented 8 years ago

Ah ha! It was ggplot, see the tidyverse NEWS.

So I just reinstalled everything gg-. Some I did from Github (including yours) based on what I found here and some I did from CRAN.

Now it works.

Rmadillo commented 8 years ago

Thanks for trying on your end, too!