rstudio / rstudio/bslib

Theme customizer panel not working

Open
#1,139 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SCSS
Stars
569
Forks
72
Avg merge
1d 2h
Merged PRs (30d)
5

Description

Describe the problem

Changing a variable in the bs_themer theme customizer panel has no effect. A warning is displayed instead.

library(bslib)

bs_theme_preview(theme = bs_theme(), with_themer = TRUE)

# Then, in the app, change any variable using the theme customizer.

# > Warning: bs_themer() encountered malformed input; ignoring

# The theme preview does not change

(changing the overall theme with the dropdown and the dark mode toggle do work)

Session Info

─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.4.1 (2024-06-14)
 os       Ubuntu 22.04.5 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Etc/UTC
 date     2024-11-25
 rstudio  2024.09.0+375.pro3 Cranberry Hibiscus (server)
 pandoc   2.9.2.1 @ /usr/bin/pandoc

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! package * version date (UTC) lib source
P bsicons 0.1.2 2023-11-04 [?] RSPM
P bslib * 0.8.0 2024-07-29 [?] RSPM (R 4.4.0)
P cachem 1.1.0 2024-05-16 [?] RSPM (R 4.4.0)
P cli 3.6.3 2024-06-21 [?] RSPM (R 4.4.0)
P colorspace 2.1-1 2024-07-26 [?] RSPM
P commonmark 1.9.2 2024-10-04 [?] RSPM (R 4.4.0)
P crosstalk 1.2.1 2023-11-23 [?] RSPM
P curl * 6.0.1 2024-11-14 [?] RSPM
devtools 2.4.5 2022-10-11 [1] RSPM (R 4.4.0)
P digest 0.6.37 2024-08-19 [?] RSPM (R 4.4.0)
P DT 0.33 2024-04-04 [?] RSPM
ellipsis 0.3.2 2021-04-29 [1] RSPM (R 4.4.0)
P evaluate 1.0.1 2024-10-10 [?] RSPM (R 4.4.0)
fansi 1.0.6 2023-12-08 [1] RSPM (R 4.4.0)
P farver 2.1.2 2024-05-13 [?] RSPM
P fastmap 1.2.0 2024-05-15 [?] RSPM (R 4.4.0)
P fontawesome 0.5.3 2024-11-16 [?] RSPM
P fs 1.6.5 2024-10-30 [?] RSPM (R 4.4.0)
P ggplot2 * 3.5.1 2024-04-23 [?] RSPM
P glue 1.8.0 2024-09-30 [?] RSPM (R 4.4.0)
P gtable 0.3.6 2024-10-25 [?] RSPM
P htmltools 0.5.8.1 2024-04-04 [?] RSPM (R 4.4.0)
htmlwidgets 1.6.4 2023-12-06 [1] RSPM (R 4.4.0)
P httpuv 1.6.15 2024-03-26 [?] RSPM (R 4.4.0)
P jquerylib 0.1.4 2021-04-26 [?] RSPM (R 4.4.0)
P jsonlite 1.8.9 2024-09-20 [?] RSPM (R 4.4.0)
knitr 1.49 2024-11-08 [1] RSPM (R 4.4.0)
P labeling 0.4.3 2023-08-29 [?] RSPM
P later 1.3.2 2023-12-06 [?] RSPM (R 4.4.0)
P lattice * 0.22-6 2024-03-20 [?] CRAN (R 4.4.1)
P lifecycle 1.0.4 2023-11-07 [?] RSPM (R 4.4.0)
P magrittr 2.0.3 2022-03-30 [?] RSPM (R 4.4.0)
P Matrix 1.7-1 2024-10-18 [?] RSPM
P memoise 2.0.1 2021-11-26 [?] RSPM (R 4.4.0)
P mgcv 1.9-1 2023-12-21 [?] CRAN (R 4.4.1)
P mime 0.12 2021-09-28 [?] RSPM (R 4.4.0)
miniUI 0.1.1.1 2018-05-18 [1] RSPM (R 4.4.0)
P munsell 0.5.1 2024-04-01 [?] RSPM
P nlme 3.1-166 2024-08-14 [?] RSPM
pillar 1.9.0 2023-03-22 [1] RSPM (R 4.4.0)
P pkgbuild 1.4.5 2024-10-28 [?] RSPM (R 4.4.0)
pkgconfig 2.0.3 2019-09-22 [1] RSPM (R 4.4.0)
P pkgload 1.4.0 2024-06-28 [?] RSPM (R 4.4.0)
plyr 1.8.9 2023-10-02 [1] RSPM (R 4.4.0)
profvis 0.4.0 2024-09-20 [1] RSPM (R 4.4.0)
P promises 1.3.0 2024-04-05 [?] RSPM (R 4.4.0)
P purrr 1.0.2 2023-08-10 [?] RSPM
P R6 2.5.1 2021-08-19 [?] RSPM (R 4.4.0)
ragg 1.3.3 2024-09-11 [1] RSPM (R 4.4.0)
P Rcpp 1.0.13-1 2024-11-02 [?] RSPM (R 4.4.0)
remotes 2.5.0 2024-03-17 [1] RSPM (R 4.4.0)
renv 1.0.11 2024-10-12 [1] RSPM (R 4.4.1)
reshape2 * 1.4.4 2020-04-09 [1] RSPM (R 4.4.0)
P rlang * 1.1.4 2024-06-04 [?] RSPM (R 4.4.0)
P rsconnect 1.3.3 2024-11-19 [?] RSPM
P rstudioapi 0.17.1 2024-10-22 [?] RSPM
P sass 0.4.9 2024-03-15 [?] RSPM (R 4.4.0)
P scales 1.3.0 2023-11-28 [?] RSPM
sessioninfo 1.2.2 2021-12-06 [1] RSPM (R 4.4.0)
P shiny * 1.9.1 2024-08-01 [?] RSPM (R 4.4.0)
stringi 1.8.4 2024-05-06 [1] RSPM (R 4.4.0)
stringr 1.5.1 2023-11-14 [1] RSPM (R 4.4.0)
systemfonts 1.1.0 2024-05-15 [1] RSPM (R 4.4.0)
textshaping 0.4.0 2024-05-24 [1] RSPM (R 4.4.0)
tibble 3.2.1 2023-03-20 [1] RSPM (R 4.4.0)
urlchecker 1.0.1 2021-11-30 [1] RSPM (R 4.4.0)
P usethis 3.0.0 2024-07-29 [?] RSPM
utf8 1.2.4 2023-10-22 [1] RSPM (R 4.4.0)
P vctrs 0.6.5 2023-12-01 [?] RSPM
P withr 3.0.2 2024-10-28 [?] RSPM (R 4.4.0)
xfun 0.49 2024-10-31 [1] RSPM (R 4.4.0)
P xtable 1.8-4 2019-04-21 [?] RSPM (R 4.4.0)
P yaml 2.3.10 2024-07-26 [?] RSPM

[1] /home/■■■■/.cache/R/renv/library/■■■■/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu
[2] /home/■■■■/.cache/R/renv/sandbox/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu/22bdb599

P ── Loaded and on-disk path mismatch.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided bs_theme_preview(theme = bs_theme(), with_themer = TRUE) example and changing a variable in the bs_themer panel. Trace the malformed-input warning and the theme preview update path. Done means variable changes update the preview without the warning, while the existing theme dropdown and dark mode toggle continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, sass
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.