dreamRs / esquisse

RStudio add-in to make plots interactively with ggplot2
https://dreamrs.github.io/esquisse
Other
1.76k stars 227 forks source link

Error in esquisser(): mfunc(bs_global_get()) : attempt to apply non-function #220

Closed IdoBar closed 8 months ago

IdoBar commented 1 year ago

Hi,

A student of mine (a non-gh user) is having issues running esquisser(), with the following cryptic error:

> library(esquisse)
> esquisser()
Error in mfunc(bs_global_get()) : attempt to apply non-function

This is her Rsession details:

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

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

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

other attached packages:
[1] esquisse_1.1.1

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.0    bslib_0.4.0         purrr_0.3.4        
 [4] ggthemes_4.2.0      haven_2.3.1         colorspace_1.4-1  
 [7] vctrs_0.4.1         generics_0.0.2      viridisLite_0.3.0  
[10] htmltools_0.5.2     utf8_1.2.2          rlang_1.0.2        
[13] pillar_1.8.0        later_1.1.0.1       jquerylib_0.1.4    
[16] foreign_0.8-80      glue_1.4.2          RColorBrewer_1.1-2
[19] readxl_1.3.1        lifecycle_1.0.1     stringr_1.4.0      
[22] munsell_0.5.0       gtable_0.3.0        cellranger_1.1.0  
[25] zip_2.1.1           memoise_1.1.0       rio_0.5.16        
[28] forcats_0.5.0       fastmap_1.1.0       httpuv_1.6.5      
[31] curl_4.3            shinyWidgets_0.7.1  fansi_1.0.3        
[34] Rcpp_1.0.8.3        xtable_1.8-4        scales_1.1.1      
[37] promises_1.1.1      cachem_1.0.6        jsonlite_1.7.0    
[40] farver_2.0.3        mime_0.9            ggplot2_3.3.3      
[43] hms_0.5.3           digest_0.6.25       stringi_1.4.6      
[46] openxlsx_4.1.5      dplyr_1.0.2         shiny_1.7.2        
[49] grid_4.0.2          cli_3.2.0           tools_4.0.2        
[52] magrittr_2.0.3      sass_0.4.1          tibble_3.0.3      
[55] pkgconfig_2.0.3     ellipsis_0.3.2      data.table_1.13.0  
[58] phosphoricons_0.1.2 rstudioapi_0.11     R6_2.4.1          
[61] datamods_1.3.3      compiler_4.0.2 

Thanks, Ido

billyaungmyint commented 1 year ago

Hi Ido ,

May I suggest to upgrade her R version first ? That version is more than 2 years old.

Thanks Billy

On Mon, 1 Aug 2022, 10:06 Ido Bar, @.***> wrote:

Hi,

A student of mine (a non-gh user) is having issues running esquisser(), with the following cryptic error:

library(esquisse) esquisser() Error in mfunc(bs_global_get()) : attempt to apply non-function

This is her Rsession details:

R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22000)

Matrix products: default

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

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

other attached packages: [1] esquisse_1.1.1

loaded via a namespace (and not attached): [1] tidyselect_1.1.0 bslib_0.4.0 purrr_0.3.4 [4] ggthemes_4.2.0 haven_2.3.1 colorspace_1.4-1 [7] vctrs_0.4.1 generics_0.0.2 viridisLite_0.3.0 [10] htmltools_0.5.2 utf8_1.2.2 rlang_1.0.2 [13] pillar_1.8.0 later_1.1.0.1 jquerylib_0.1.4 [16] foreign_0.8-80 glue_1.4.2 RColorBrewer_1.1-2 [19] readxl_1.3.1 lifecycle_1.0.1 stringr_1.4.0 [22] munsell_0.5.0 gtable_0.3.0 cellranger_1.1.0 [25] zip_2.1.1 memoise_1.1.0 rio_0.5.16 [28] forcats_0.5.0 fastmap_1.1.0 httpuv_1.6.5 [31] curl_4.3 shinyWidgets_0.7.1 fansi_1.0.3 [34] Rcpp_1.0.8.3 xtable_1.8-4 scales_1.1.1 [37] promises_1.1.1 cachem_1.0.6 jsonlite_1.7.0 [40] farver_2.0.3 mime_0.9 ggplot2_3.3.3 [43] hms_0.5.3 digest_0.6.25 stringi_1.4.6 [46] openxlsx_4.1.5 dplyr_1.0.2 shiny_1.7.2 [49] grid_4.0.2 cli_3.2.0 tools_4.0.2 [52] magrittr_2.0.3 sass_0.4.1 tibble_3.0.3 [55] pkgconfig_2.0.3 ellipsis_0.3.2 data.table_1.13.0 [58] phosphoricons_0.1.2 rstudioapi_0.11 R6_2.4.1 [61] datamods_1.3.3 compiler_4.0.2

Thanks, Ido

— Reply to this email directly, view it on GitHub https://github.com/dreamRs/esquisse/issues/220, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVEMRTTPZ5NHP6POSJIUNTVW4WIHANCNFSM55F5LJRQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

IdoBar commented 1 year ago

Thanks, she'll give it a try, but I ran it without a problem on R v3.6.1 and other students of mine have been running esquisser() with "older" R versions, so I don't think that's the issue.

pvictor commented 1 year ago

bs_global_get() is a function from bslib package. What does bslib::bs_global_get() returns in your R console ? Have you tried to set a custom Bootstrap theme with bsib ? You should try to restart your R session and launch esquisse after that.