Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using thematic at the console causes shiny to be loaded #79

Closed
wch opened this issue Jan 15, 2021 · 1 comment
Closed

Using thematic at the console causes shiny to be loaded #79

wch opened this issue Jan 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@wch
Copy link
Contributor

wch commented Jan 15, 2021

For example, in a new R session:

library(thematic)
thematic_on()
plot(1:5)
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.0.3 (2020-10-10)
#>  os       macOS Catalina 10.15.5      
#>  system   x86_64, darwin17.0          
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  ctype    en_US.UTF-8                 
#>  tz       America/Chicago             
#>  date     2021-01-15                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version    date       lib source                           
#>  assertthat    0.2.1      2019-03-21 [1] CRAN (R 4.0.0)                   
#>  cli           2.2.0.9000 2021-01-14 [1] Github (r-lib/cli@d2f1506)       
#>  colorspace    2.0-0      2020-11-11 [1] CRAN (R 4.0.2)                   
#>  crayon        1.3.4      2017-09-16 [1] CRAN (R 4.0.2)                   
#>  digest        0.6.27     2020-10-24 [1] CRAN (R 4.0.2)                   
#>  dplyr         1.0.2      2020-08-18 [1] CRAN (R 4.0.2)                   
#>  ellipsis      0.3.1      2020-05-15 [1] CRAN (R 4.0.0)                   
#>  fastmap       1.0.1.9001 2020-12-04 [1] Github (r-lib/fastmap@e23f9c2)   
#>  generics      0.1.0      2020-10-31 [1] CRAN (R 4.0.2)                   
#>  ggplot2       3.3.3      2020-12-30 [1] CRAN (R 4.0.2)                   
#>  glue          1.4.2      2020-08-27 [1] CRAN (R 4.0.2)                   
#>  gtable        0.3.0      2019-03-25 [1] CRAN (R 4.0.2)                   
#>  htmltools     0.5.1      2021-01-12 [1] CRAN (R 4.0.3)                   
#>  httpuv        1.5.4      2020-06-06 [1] CRAN (R 4.0.2)                   
#>  knitr         1.30       2020-09-22 [1] CRAN (R 4.0.2)                   
#>  later         1.1.0.9000 2021-01-07 [1] Github (r-lib/later@eb2c8ad)     
#>  lattice       0.20-41    2020-04-02 [2] CRAN (R 4.0.3)                   
#>  lifecycle     0.2.0      2020-03-06 [1] CRAN (R 4.0.0)                   
#>  magrittr      2.0.1      2020-11-17 [1] CRAN (R 4.0.2)                   
#>  mime          0.9        2020-02-04 [1] CRAN (R 4.0.0)                   
#>  munsell       0.5.0      2018-06-12 [1] CRAN (R 4.0.2)                   
#>  pillar        1.4.7      2020-11-20 [1] CRAN (R 4.0.2)                   
#>  pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.0.0)                   
#>  promises      1.1.1.9001 2021-01-14 [1] Github (rstudio/promises@55ca04f)
#>  purrr         0.3.4      2020-04-17 [1] CRAN (R 4.0.0)                   
#>  R6            2.5.0      2020-10-28 [1] CRAN (R 4.0.2)                   
#>  ragg          0.4.0      2020-10-05 [1] CRAN (R 4.0.2)                   
#>  rappdirs      0.3.1      2016-03-28 [1] CRAN (R 4.0.0)                   
#>  Rcpp          1.0.5      2020-07-06 [1] CRAN (R 4.0.2)                   
#>  rlang         0.4.10     2020-12-30 [1] CRAN (R 4.0.2)                   
#>  rstudioapi    0.13       2020-11-12 [1] CRAN (R 4.0.2)                   
#>  scales        1.1.1      2020-05-11 [1] CRAN (R 4.0.2)                   
#>  sessioninfo   1.1.1      2018-11-05 [1] CRAN (R 4.0.0)                   
#>  shiny         1.6.0      2021-01-14 [1] Github (rstudio/shiny@c4b5e5f)   
#>  sysfonts      0.8.3      2021-01-10 [1] CRAN (R 4.0.2)                   
#>  systemfonts   0.3.2      2020-09-29 [1] CRAN (R 4.0.2)                   
#>  textshaping   0.2.1      2020-11-13 [1] CRAN (R 4.0.2)                   
#>  thematic    * 0.1.1      2021-01-14 [1] Github (rstudio/thematic@6e10b4e)
#>  tibble        3.0.4      2020-10-12 [1] CRAN (R 4.0.2)                   
#>  tidyselect    1.1.0      2020-05-11 [1] CRAN (R 4.0.2)                   
#>  vctrs         0.3.6      2020-12-17 [1] CRAN (R 4.0.2)                   
#>  withr         2.3.0      2020-09-22 [1] CRAN (R 4.0.2)                   
#>  xfun          0.20       2021-01-06 [1] standard (@0.20)                 
#>  xtable        1.8-4      2019-04-21 [1] CRAN (R 4.0.0)                   
#> 
#> [1] /Users/winston/R/4.0
#> [2] /Library/Frameworks/R.framework/Versions/4.0/Resources/library

The same happens in an Rmd.

@wch
Copy link
Contributor Author

wch commented Jan 18, 2021

I believe the problem is from here:

thematic/R/auto.R

Lines 204 to 206 in 19113ad

shiny_output_info <- function() {
if (!is_installed("shiny")) return(NULL)
info <- tryNULL(shiny::getCurrentOutputInfo())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants