Repository navigation
Description
System details
RStudio Edition : Desktop
RStudio Version : 2026.9.0.174
OS Version : Windows 11 25H2
R Version : 4.6.1 (2026-06-24 ucrt)
Steps to reproduce the problem
-
Create a new
.Rmdfile with the following YAML header and code chunk:--- title: "Bold table reproduction" output: html_document ---daily <- data.frame( date = seq(as.Date("2024-01-01"), by = "day", length.out = 10), value = round(rnorm(10, mean = 100, sd = 10), 2) )rmarkdown::paged_table(daily)
-
With "Show output inline for all R Markdown documents" enabled (the default), run the chunk (e.g. via the green "Run Current Chunk" button, or
Ctrl+Shift+Enter). -
Observe the inline chunk output rendered directly below the code chunk in the editor.
Describe the problem in detail
When running the chunk inline in the editor, all text inside the data cells of the paged_table output appears in bold (not just the column headers, which is expected/by design). This happens for:
rmarkdown::paged_table(df)called explicitly- A bare data frame / tibble print (e.g.
dailyon its own line), which RStudio automatically renders using the same paged-table component
I isolated the issue with the following comparison tests, all run in the same session/document:
| Table source | Chunk inline output | RStudio Viewer pane |
|---|---|---|
| knitr::kable(mtcars) | Normal weight | (not tested, N/A — static HTML) |
| DT::datatable(daily) | Normal weight | Normal weight |
| rmarkdown::paged_table(daily) / bare data frame print | Bold | N/A (paged_table is only handled by knit_print, doesn't render standalone in Viewer via print()) |
Additional things I ruled out before narrowing it down to paged_table specifically:
- Switching RStudio Editor Themes (Global Options -> Appearance)
- Restoring/verifying the YAML header (
output: html_document) - Restarting R / restarting RStudio
- Deleting
%appdata%\Roaming\RStudioand%localappdata%\RStudio - Fully uninstalling and reinstalling RStudio (latest version)
- Switching the rendering engine (OS Integration) from Auto-detect to Software
- Unchecking "Show output inline for all R Markdown documents"
- Disabling the Segoe UI Variable font on Windows
- Testing at 100% display scaling
None of the above had any effect. The bold-only-in-paged_table pattern was consistent and reproducible across multiple different .Rmd files.
Knitting the document to HTML ("Knit" button) and opening the resulting standalone HTML file produces a normally-weighted (non-bold) table, so this appears to be limited to the inline preview rendering path specifically, and does not affect the final rendered output.
My working hypothesis is that paged_table's own stylesheet (pagedtable.css, which normally overrides the browser's default bold <th>/table styling) is not being fully loaded/injected in the inline chunk output rendering path, while it is correctly bundled when knitting to a full standalone HTML document. DT::datatable(), which bundles its CSS via the more standard DataTables.js/Bootstrap dependency mechanism, does not exhibit the same issue in the same environment.
Describe the behavior you expected
Data cells in a paged_table (and in the default data-frame/tibble inline print, which uses the same component) should render with normal font weight in the inline chunk output, matching both the Knit-to-HTML output and the DT::datatable() inline output — with only column headers (if any) intentionally bold.
- I have read the guide for submitting good bug reports.
- I have installed the latest version of RStudio, and confirmed that the issue still persists.
- If I am reporting an RStudio crash, I have included a diagnostics report.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
RStudio Edition : Desktop
RStudio Version : 2026.9.0.174
OS Version : Windows 11 25H2
R Version : 4.6.1 (2026-06-24 ucrt)
Steps to reproduce the problem
- Create a new
.Rmdfile with the following YAML header and code chunk:
---
title: "Bold table reproduction"
output: html_document
---
```{r}
daily <- data.frame(
date = seq(as.Date("2024-01-01"), by = "day", length.out = 10),
value = round(rnorm(10, mean = 100, sd = 10), 2)
)
```
rmarkdown::paged_table(daily)
- With "Show output inline for all R Markdown documents" enabled (the default), run the chunk (e.g. via the green "Run Current Chunk" button, or
Ctrl+Shift+Enter). - Observe the inline chunk output rendered directly below the code chunk in the editor.
Describe the problem in detail
When running the chunk inline in the editor, all text inside the data cells of the paged_table output appears in bold (not just the column headers, which is expected/by design). This happens for:
rmarkdown::paged_table(df)called explicitly- A bare data frame / tibble print (e.g.
dailyon its own line), which RStudio automatically renders using the same paged-table component
I isolated the issue with the following comparison tests, all run in the same session/document:
| Table source | Chunk inline output | RStudio Viewer pane |
|---|---|---|
knitr::kable(mtcars) |
Normal weight | (not tested, N/A — static HTML) |
DT::datatable(daily) |
Normal weight | Normal weight |
rmarkdown::paged_table(daily) / bare data frame print |
Bold | N/A (paged_table is only handled by knit_print, doesn't render standalone in Viewer via print()) |
Additional things I ruled out before narrowing it down to paged_table specifically:
- Switching RStudio Editor Themes (Global Options -> Appearance)
- Restoring/verifying the YAML header (
output: html_document) - Restarting R / restarting RStudio
- Deleting
%appdata%\Roaming\RStudioand%localappdata%\RStudio - Fully uninstalling and reinstalling RStudio (latest version)
- Switching the rendering engine (OS Integration) from Auto-detect to Software
- Unchecking "Show output inline for all R Markdown documents"
- Disabling the Segoe UI Variable font on Windows
- Testing at 100% display scaling
None of the above had any effect. The bold-only-in-paged_table pattern was consistent and reproducible across multiple different .Rmd files.
Knitting the document to HTML ("Knit" button) and opening the resulting standalone HTML file produces a normally-weighted (non-bold) table, so this appears to be limited to the inline preview rendering path specifically, and does not affect the final rendered output.
My working hypothesis is that paged_table's own stylesheet (pagedtable.css, which normally overrides the browser's default bold <th>/table styling) is not being fully loaded/injected in the inline chunk output rendering path, while it is correctly bundled when knitting to a full standalone HTML document. DT::datatable(), which bundles its CSS via the more standard DataTables.js/Bootstrap dependency mechanism, does not exhibit the same issue in the same environment.
Describe the behavior you expected
Data cells in a paged_table (and in the default data-frame/tibble inline print, which uses the same component) should render with normal font weight in the inline chunk output, matching both the Knit-to-HTML output and the DT::datatable() inline output — with only column headers (if any) intentionally bold.
- I have read the guide for [submitting good bug reports](https://github.com/rstudio/rstudio/wiki/Writing-Good-Bug-Reports).
- I have installed the latest version of RStudio, and confirmed that the issue still persists.
- If I am reporting an RStudio crash, I have included a [diagnostics report](https://support.posit.co/hc/en-us/articles/200321257-Running-a-Diagnostics-Report).
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Activity
kevinushey commentedon Sep 23, 2026
Thanks for the thorough report. I believe the cause is a font rather than a missing stylesheet. The paged table is the one kind of chunk output that renders straight into the editor DOM (kable and DT output live inside an iframe), and RStudio's copy of
pagedtable.cssgives it a font stack of its own that starts with"Lucida Sans", while the rest of RStudio Desktop on Windows uses Segoe UI. "Lucida Sans" comes with Office rather than Windows, and if the only face of that family on your machine is "Lucida Sans Demibold", the browser satisfies the request with it and every cell renders demibold. Headers are bold anyway, so they look normal. rmarkdown's own copy of the stylesheet sets no font at all, which is why the knitted HTML looks fine.Could you confirm which Lucida Sans faces you have? In the R console:
Windows itself ships only
l_10646.ttf(Lucida Sans Unicode); anLSANSD.TTF/LSANSDI.TTFwithoutLSANS.TTFnext to it would confirm this. As a quick workaround, installing the regular face or removing the demibold one should make the table normal weight again.#18901 makes the paged table use the same font as the rest of the IDE instead of its own stack.
use the ide font for inline paged table output (#18901)
ranochu commentedon Sep 24, 2026
Thanks again @kevinushey for the pointer — it got me most of the way there, though the actual mechanism on my machine turned out to be slightly different from the initial theory, so I wanted to close the loop in case it's useful for others hitting this.
It wasn't that the regular face was entirely missing from disk.
LSANS.TTFwas physically present inC:\Windows\Fonts, but it was not actually registered as an installed font with Windows — it just happened to be sitting in that folder. I confirmed this a couple of ways:systemfonts::system_fonts()only listed three faces for theLucida Sansfamily — Demibold, Demibold Italic, and Italic — with no Regular entry, even thoughlist.files("C:/Windows/Fonts", pattern = "lsans")foundLSANS.TTFon disk.systemfontsreported.LSANS.TTFalso didn't show up in the Explorer "Fonts" folder view at all (that view is a virtual/shell overlay of installed fonts, not a plain directory listing), even though it was very much present at the filesystem level.Once I copied
LSANS.TTFout to a normal folder and reinstalled it via right-click → Install, Windows properly registered the Regular face,systemfonts::system_fonts()picked it up, andrmarkdown::paged_table()data cells rendered at normal weight in the inline chunk output again.So on my system the root issue was more "file present but never actually installed/registered" than "face missing outright" — but the underlying explanation (font-stack fallback to Demibold when Regular can't be resolved) was exactly right, and was very helpful for narrowing this down. Thanks for that, and for the fix in #18901 — having the paged table use the IDE font instead of its own
Lucida Sans-first stack means this class of issue won't resurface regardless of what's installed/registered locally. Confirmed fixed on my end after the font reinstall, and looking forward to it landing in a release.