Thanks to visit codestin.com
Credit goes to github.com

Skip to content

css argument of html_document doesn't work with runtime: shiny + {bslib} theme #2443

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

Closed
cpsievert opened this issue Jan 13, 2023 · 2 comments · Fixed by #2486
Closed

css argument of html_document doesn't work with runtime: shiny + {bslib} theme #2443

cpsievert opened this issue Jan 13, 2023 · 2 comments · Fixed by #2486

Comments

@cpsievert
Copy link
Contributor

cpsievert commented Jan 13, 2023

Can reproduce by doing rmarkdown::run("index.Rmd") with the following index.Rmd

---
title: "Title"
runtime: shiny
output:
  html_document:
    css: styles.css
    theme:
      version: 5
---

### Another title

And styles.css:

body {background-color: purple;}

Which will generate the following error:

Warning in file(con, "r") :
  cannot open file 'styles.css': No such file or directory
@cpsievert
Copy link
Contributor Author

Before anyone spends time of this, I plan on sending a PR to address this by the 17th (hopefully earlier)

Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
1 participant