xaringan
xaringan copied to clipboard
inf_mr() does not update with changes to css for html_document
inf_mr()
does not update when a .css file is updated when inf_mr()
is called on a html_document()
. Below is a reprex + video showcasing behaviour.
inf_mr()
works as expected when used on a moon_reader()
document and updates when changes are made to .css file (not shown in reprex).
Stackoverflow ref: https://stackoverflow.com/questions/66447086/does-inf-mr-refresh-xaringan-when-i-change-the-css-file-in-rstudio/66485152?noredirect=1#comment117750699_66485152
Reprex:
Main document:
---
title: "example more title"
author: "Example"
date: "13/03/2021"
output: html_document
css: "style.css"
---
## R Markdown More
This is an R Markdown Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
css document:
p {
font-size: 10px;
}
gif:
Session info:
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 10.16, RStudio 1.4.1100
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
Package version:
base64enc_0.1.3 BH_1.75.0.0 digest_0.6.27
evaluate_0.14 glue_1.4.2 graphics_4.0.2
grDevices_4.0.2 highr_0.8 htmltools_0.5.1.1
httpuv_1.5.5 jsonlite_1.7.2 knitr_1.31
later_1.1.0.1 magrittr_2.0.1 markdown_1.1
methods_4.0.2 mime_0.10 promises_1.2.0.1
R6_2.5.0 Rcpp_1.0.6 rlang_0.4.10.9000
rmarkdown_2.7.3 servr_0.21 stats_4.0.2
stringi_1.5.3 stringr_1.4.0 tinytex_0.30
tools_4.0.2 utils_4.0.2 xaringan_0.20.1
xfun_0.22 yaml_2.2.1
By filing an issue to this repo, I promise that
- [x] I have fully read the issue guide at https://yihui.org/issue/.
- [x] I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('xaringan')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/xaringan')
. - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- [x] I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.