dreamRs / fresh

Fresh shiny themes
https://dreamrs.github.io/fresh/
GNU General Public License v3.0
224 stars 10 forks source link

Vignettes code fails to run: `Error: could not find function "navbarPage"` #18

Open barracuda156 opened 6 days ago

barracuda156 commented 6 days ago
* checking running R code from vignettes ...
  ‘fresh.Rmd’ using ‘UTF-8’... failed
  ‘vars-bs4dash.Rmd’ using ‘UTF-8’... OK
  ‘vars-shiny.Rmd’ using ‘UTF-8’... OK
  ‘vars-shinydashboard.Rmd’ using ‘UTF-8’... OK
 ERROR
Errors in running code in vignettes:
when running code in ‘fresh.Rmd’
  ...

> mytheme <- create_theme(theme = "default", bs_vars_navbar(default_bg = "#75b8d1", 
+     default_color = "#FFFFFF", default_link_color = "#FFFFFF",  .... [TRUNCATED] 

> navbarPage(title = "Custom navbar", header = tagList(use_theme(mytheme)), 
+     tabPanel("Tab 1"), tabPanel("Tab 2"))

  When sourcing ‘fresh.R’:
Error: could not find function "navbarPage"
Execution halted

* checking re-building of vignette outputs ... SKIPPED
* DONE

Status: 1 ERROR
pvictor commented 6 days ago

This code is not supposed to be evaluated as specified here : https://github.com/dreamRs/fresh/blob/5816b653e9023ee139c91e7b2bdd5f9c23f16de5/vignettes/fresh.Rmd#L14