ProjectMOSAIC / mosaic

Project MOSAIC R package
http://mosaic-web.org/
93 stars 26 forks source link

Error : `Error in find_subclass("Geom", geom, parent.frame()) : could not find function "find_subclass"` #709

Closed sebastiansauer closed 6 years ago

sebastiansauer commented 6 years ago

Running the following function:

`gf_point(hp ~ mpg, data = mtcars)``

I got this error:

Error in find_subclass("Geom", geom, parent.frame()) : 
  could not find function "find_subclass"

I assume there are some issues with updates related to R 3.5.0 (?)

What I tried:


sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.4

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

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] mosaic_1.2.0       Matrix_1.2-14      mosaicData_0.16.0  ggformula_0.7.0    ggplot2_2.2.1.9000 lattice_0.20-35    dplyr_0.7.5       

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.17     compiler_3.5.0   pillar_1.2.3     git2r_0.21.0     plyr_1.8.4       bindr_0.1.1      tools_3.5.0      digest_0.6.15    nlme_3.1-137     evaluate_0.10.1  memoise_1.1.0    tibble_1.4.2    
[13] gtable_0.2.0     pkgconfig_2.0.1  rlang_0.2.1      psych_1.8.4      parallel_3.5.0   curl_3.2         yaml_2.1.19      xfun_0.1         ggdendro_0.1-20  bindrcpp_0.2.2   gridExtra_2.3    withr_2.1.2     
[25] httr_1.3.1       stringr_1.3.1    knitr_1.20       devtools_1.13.5  rprojroot_1.3-2  grid_3.5.0       tidyselect_0.2.4 mosaicCore_0.5.0 glue_1.2.0       R6_2.2.2         foreign_0.8-70   rmarkdown_1.10  
[37] bookdown_0.7     reshape2_1.4.3   tidyr_0.8.1      purrr_0.2.5      magrittr_1.5     splines_3.5.0    MASS_7.3-50      backports_1.1.2  scales_0.5.0     htmltools_0.3.6  mnormt_1.5-5     assertthat_0.2.0
[49] colorspace_1.3-2 stringi_1.2.3    lazyeval_0.2.1   munsell_0.5.0    broom_0.4.4     
luebby commented 6 years ago

Seems to be a problem with ggplot2_2.2.1.9000: It worked fine with me for ggplot2_2.2.1(CRAN) but with ggplot2_2.2.1.9000 (github) I get the same error.

rpruim commented 6 years ago

If you use Github release of ggplot2, you also need the ggplot2.3 branch of ggformula.

rpruim commented 6 years ago

You can install the required version (for now) with


devtools::install_github("ProjectMOSAIC/ggformula", ref = "ggplot2.3")
sebastiansauer commented 6 years ago

Thanks, worked out.

aloy commented 6 years ago

@rpruim Will the ggplot2.3 branch be on CRAN by fall? Just hoping to switch everything to ggformula this fall. Thanks!

rpruim commented 6 years ago

It's already there. I expect another update in the next 1-2 weeks that will required the new version of ggplot2 (we couldn't do that until it was on CRAN). That will avoid the hassle of having to update ggformula after updating ggplot2 (and offer a few other improvements).

But as long as you update ggplot2 first and ggformula after, you should be good to go using the CRAN versions already now.

nicholasjhorton commented 6 years ago

It would be great if the new versions of ggplot2 and mosaic could get on CRAN prior to the JSM, as I'm planning some outreach during the pre-JSM workshops and during the conference.