Skip to content

No bs4_book chunk line numbering #1486

Open
@moondog1969

Description

@moondog1969

I am unable to obtain chunk line numbers in bs4_book. When using:

# Test 1

```{r, attr.source='.numberLines'}
1 + 1
```

I get:

Image

Note the lack of line numbers in the chunk input. My YAML header is:

---
title: "Test"
author: "Author"
date: "2025-01-22"
output:
  bookdown::bs4_book:
---

Session specifics:

Running under: Windows 10 x64 (build 17134), RStudio 2024.9.1.394

Locale:
  LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
  LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
  LC_TIME=English_United States.1252    

Package version:
  base64enc_0.1.3   bookdown_0.39     bslib_0.8.0       cachem_1.1.0     
  cli_3.6.2         digest_0.6.35     evaluate_1.0.3    fastmap_1.2.0    
  fontawesome_0.5.3 fs_1.6.5          glue_1.7.0        graphics_4.4.2   
  grDevices_4.4.2   highr_0.11        htmltools_0.5.8.1 jquerylib_0.1.4  
  jsonlite_1.8.8    knitr_1.49        lifecycle_1.0.4   memoise_2.0.1    
  methods_4.4.2     mime_0.12         R6_2.5.1          rappdirs_0.3.3   
  rlang_1.1.3       rmarkdown_2.29    sass_0.4.9        stats_4.4.2      
  tinytex_0.54      tools_4.4.2       utils_4.4.2       xfun_0.43        
  yaml_2.3.8       

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions