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

Issue in the second example of section 6.5.2. Shiny themes #613

Open
ArthurDentDK opened this issue May 10, 2023 · 0 comments
Open

Issue in the second example of section 6.5.2. Shiny themes #613

ArthurDentDK opened this issue May 10, 2023 · 0 comments

Comments

@ArthurDentDK
Copy link

In this example:

theme <- bslib::bs_theme(
  bg = "#0b3d91", 
  fg = "white", 
  base_font = "Source Sans Pro"
)

Using <- instead of = gives an erroneous output in the app (lots of text at the top). (Tested with R version 4.2.3, shiny_1.7.4, and bslib_0.4.2).
The example is correct if "theme" is interpreted as a variable defined in the example and inserted like this:

ui <- fluidPage(
  theme = theme,
  titlePanel("A themed plot"),
  plotOutput("plot"),
)

But it seems confusing to use the same name for the variable and the parameter, so I assume it is a mistake or a changed behavior after package updates.

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

No branches or pull requests

1 participant