YuLab-SMU / scatterpie

:art: scatter pie plot
https://cran.r-project.org/package=scatterpie
60 stars 16 forks source link

Vignette throws an error "undefined columns selected" #12

Closed woodwards closed 4 years ago

woodwards commented 6 years ago

Hi, thanks for this awesome package, I'm getting an error in the vignette the first time we call geom_scatterpie():

> ggplot() + geom_scatterpie(aes(x=long, y=lat, group=region), data=d,
+                             cols=LETTERS[1:4], color=NA) + coord_equal()
Error in `[.data.frame`(data, , xvar) : undefined columns selected
> 

R version 3.5.0 (2018-04-23)

RS-eco commented 6 years ago

I am having the same error, when trying to create any plot from your examples!

This is my session info:

sessionInfo() R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=de_DE.UTF-8 LC_COLLATE=en_GB.UTF-8 LC_MONETARY=de_DE.UTF-8
[6] LC_MESSAGES=en_GB.UTF-8 LC_PAPER=de_DE.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C

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

other attached packages: [1] scatterpie_0.1.2 ggplot2_3.0.0

loaded via a namespace (and not attached): [1] tidyselect_0.2.4 purrr_0.2.5 sf_0.6-3 lattice_0.20-35 colorspace_1.3-2 htmltools_0.3.6 yaml_2.1.19 rlang_0.2.1
[9] e1071_1.6-8 pillar_1.2.3 glue_1.2.0 withr_2.1.2 DBI_1.0.0 tweenr_0.1.5 sp_1.3-1 bindrcpp_0.2.2
[17] rvcheck_0.1.0 bindr_0.1.1 plyr_1.8.4 stringr_1.3.1 rgeos_0.3-28 munsell_0.5.0 gtable_0.2.0 raster_2.6-7
[25] devtools_1.13.6 evaluate_0.10.1 memoise_1.1.0 knitr_1.20 parallel_3.4.4 curl_3.2 class_7.3-14 Rcpp_0.12.17
[33] scales_0.5.0 backports_1.1.2 classInt_0.2-3 ggmap2_0.0.1 gridExtra_2.3 ggforce_0.1.3 digest_0.6.15 stringi_1.2.3
[41] dplyr_0.7.6 grid_3.4.4 rprojroot_1.3-2 rgdal_1.3-3 tools_3.4.4 magrittr_1.5 lazyeval_0.2.1 tibble_1.4.2
[49] tidyr_0.8.1 pkgconfig_2.0.1 MASS_7.3-50 spData_0.2.9.0 assertthat_0.2.0 rmarkdown_1.10 httr_1.3.1 R6_2.2.2
[57] units_0.6-0 compiler_3.4.4 git2r_0.22.1

jribado-IDM commented 4 years ago

Having the same issue - is there any fix?

GuangchuangYu commented 4 years ago

this issue should be removed in current release version.

── R CMD check ─────────────────────────────────────────────────────────────────
─  using log directory ‘/tmp/Rtmpkjm0nE/file23d1854217d/scatterpie.Rcheck’
─  using R version 3.6.1 (2019-07-05)
─  using platform: x86_64-pc-linux-gnu (64-bit)
─  using session charset: UTF-8
─  using option ‘--as-cran’
✔  checking for file ‘scatterpie/DESCRIPTION’
─  this is package ‘scatterpie’ version ‘0.1.3’
─  package encoding: UTF-8
─  checking CRAN incoming feasibility ... Note_to_CRAN_maintainers (13m 28.6s)
   Maintainer: ‘Guangchuang Yu <guangchuangyu@gmail.com>’
✔  checking package namespace information
✔  checking package dependencies (9.2s)
✔  checking if this is a source package
✔  checking if there is a namespace
✔  checking for executable files ...
✔  checking for hidden files and directories
✔  checking for portable file names
✔  checking for sufficient/correct file permissions
✔  checking serialization versions
✔  checking whether package ‘scatterpie’ can be installed (1.8s)
✔  checking installed package size
✔  checking package directory
✔  checking for future file timestamps (741ms)
✔  checking ‘build’ directory
✔  checking DESCRIPTION meta-information ...
✔  checking top-level files
✔  checking for left-over files
✔  checking index information ...
✔  checking package subdirectories ...
✔  checking R files for non-ASCII characters ...
✔  checking R files for syntax errors ...
✔  checking whether the package can be loaded (390ms)
✔  checking whether the package can be loaded with stated dependencies (335ms)
✔  checking whether the package can be unloaded cleanly ...
✔  checking whether the namespace can be loaded with stated dependencies ...
✔  checking whether the namespace can be unloaded cleanly (385ms)
✔  checking loading without being on the library search path (402ms)
✔  checking use of S3 registration (926ms)
✔  checking dependencies in R code (341ms)
✔  checking S3 generic/method consistency (818ms)
✔  checking replacement functions (347ms)
✔  checking foreign function calls (346ms)
✔  checking R code for possible problems (1.9s)
✔  checking Rd files ...
✔  checking Rd metadata ...
✔  checking Rd line widths ...
✔  checking Rd cross-references ...
✔  checking for missing documentation entries (352ms)
✔  checking for code/documentation mismatches (1s)
✔  checking Rd \usage sections (883ms)
✔  checking Rd contents ...
✔  checking for unstated dependencies in examples ...
✔  checking installed files from ‘inst/doc’ ...
✔  checking files in ‘vignettes’ ...
✔  checking examples (787ms)
✔  checking for unstated dependencies in vignettes ...
✔  checking package vignettes in ‘inst/doc’
✔  checking re-building of vignette outputs (4.1s)
✔  checking PDF version of manual (1.1s)

── R CMD check results ─────────────────────────────────── scatterpie 0.1.3 ────
Duration: 13m 56.7s

0 errors ✔ | 0 warnings ✔ | 0 notes ✔