insightsengineering / teal.reporter

Create and preview reports with Shiny modules
https://insightsengineering.github.io/teal.reporter/
Other
8 stars 8 forks source link

failure to generate report #231

Closed chlebowa closed 8 months ago

chlebowa commented 8 months ago
  1. open the exploratory app locally with shiny::shinyAppFile("../teal.gallery/exploratory/app.R", options = list("launch.browser" = TRUE))
  2. go to distribution module
  3. add report card
  4. download report as pdf with R code included

I get a shiny notification image and this in the console:

Listening on http://127.0.0.1:6471
! LaTeX Error: File `lmodern.sty' not found.

! Emergency stop.
<read *> 

When I kill the app, I also get

Warning message:
In tm_file_viewer(label = "File viewer", input_path = list(png = "https://www.r-project.org/logo/Rlogo.png",  :
  Non-existent file or url path. Please provide valid paths for:
./packrat/desc/

I can still save a zip and when I try to knit the resulting Rmd I get

! LaTeX Error: File `lmodern.sty' not found.

! Emergency stop.
<read *> 

Error: LaTeX failed to compile input_20231019152244900.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See input_20231019152244900.log for more info.
Execution halted

This is under

> R.version
               _                                          
platform       x86_64-pc-linux-gnu                        
arch           x86_64                                     
os             linux-gnu                                  
system         x86_64, linux-gnu                          
status         Patched                                    
major          4                                          
minor          2.2                                        
year           2022                                       
month          11                                         
day            10                                         
svn rev        83330                                      
language       R                                          
version.string R version 4.2.2 Patched (2022-11-10 r83330)
nickname       Innocent and Trusting  
kartikeyakirar commented 8 months ago

I believe this is related to local system. you could try this to install missing file sudo apt-get install lmodern or sudo apt-get install texlive-fonts-recommended

chlebowa commented 8 months ago

That's much better, thank you :+1: