Home Comments Thread
New Thread

4 Comments

giscus-bot giscus-bot 2022-12-17 05:48:44
Guest *Akshay* @ 2019-09-24 23:33:16 originally posted:

I have a question about the functionality of preview_chapter(). The material in the documentation seems straightforward but I can't use the command to get the output of only one chapter. I get the entire book built.

giscus-bot giscus-bot 2022-12-17 05:48:45
Guest *HS* @ 2022-02-27 14:16:27 originally posted:

The package modelsummary has problem with rendering pdf say under RStudio.cloud. It returns '! LaTeX Error: File `siunitx.sty' not found.' and there is no way to avoid it under RStudio.cloud, though it works OK under the full version of TeXLive.

giscus-bot giscus-bot 2022-12-17 05:48:46
Guest *ajam211* @ 2022-05-03 09:05:35 originally posted:

I can render an Rmd file to PDF through the Knitr button in RStudio, I cannot render the same file while passing parameters through purrr::walk(). If the Rmd file contains the following header information.

par(mar = c(4, 4, .1, .1))  
plot(cars)  
plot(mpg ~ hp, data = mtcars, pch = 19)  

The issue was posted on StackOverflow with more details 28 May 22:
https://stackoverflow.com/questions/72045786/rmarkdown-does-not-render-pdfs-as-batch

Grateful for any help and advice that may be offered.
A

Error:
output file: Test.knit.md

"C:/R/Rstudio/bin/pandoc/pandoc" +RTS -K512m -RTS Test.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoc293816fb4f3c.tex --lua-filter "C:RR-4.1.1libraryrmarkdownrmarkdownluapagebreak.lua" --lua-filter "C:RR-4.1.1libraryrmarkdownrmarkdownlualatex-div.lua" --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --variable "geometry:margin=1in"
! Undefined control sequence.
REPORTSReport
Fails 20_files/figure-latex/figures-side-1
l.77 ...ails 20_files/figure-latex/figures-side-1}

xfun::session_info()
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043), RStudio 1.4.1717

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

Package version:
assertthat_0.2.1 base64enc_0.1.3 bslib_0.3.1 cli_3.2.0 colorspace_2.0-3 compiler_4.1.1
crayon_1.5.1 DBI_1.1.2 digest_0.6.29 dplyr_1.0.8 ellipsis_0.3.2 evaluate_0.15
fansi_1.0.3 farver_2.1.0 fastmap_1.1.0 fs_1.5.2 generics_0.1.2 ggplot2_3.3.5
glue_1.6.2 graphics_4.1.1 grDevices_4.1.1 grid_4.1.1 gtable_0.3.0 highr_0.9
htmltools_0.5.2 isoband_0.2.5 jquerylib_0.1.4 jsonlite_1.8.0 knitr_1.39 labeling_0.4.2
lattice_0.20.44 lifecycle_1.0.1 magrittr_2.0.3 MASS_7.3.54 Matrix_1.3.4 methods_4.1.1
mgcv_1.8.36 munsell_0.5.0 nlme_3.1.152 pillar_1.7.0 pkgconfig_2.0.3 purrr_0.3.4
R6_2.5.1 rappdirs_0.3.3 RColorBrewer_1.1.3 rlang_1.0.2 rmarkdown_2.14 rstudioapi_0.13
sass_0.4.1 scales_1.2.0 splines_4.1.1 stats_4.1.1 stringi_1.7.6 stringr_1.4.0
tibble_3.1.6 tidyselect_1.1.2 tinytex_0.38 tools_4.1.1 utf8_1.2.2 utils_4.1.1
vctrs_0.4.1 viridisLite_0.4.0 withr_2.5.0 xfun_0.30 yaml_2.3.5

salmankhan302 salmankhan302 2024-12-18 10:35:50

Hello every on whne I try to kint Markdown file I got following error. Please help me to fix it

processing file: HelloWorld.Rmd

"C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS HelloWorld.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output HelloWorld.tex --lua-filter "C:\Users\tksasa\AppData\Local\R\win-library\4.4\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\tksasa\AppData\Local\R\win-library\4.4\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --highlight-style tango --pdf-engine pdflatex --variable graphics --variable "geometry:margin=1in"
output file: HelloWorld.knit.md

Error: LaTeX failed to compile HelloWorld.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips.
In addition: Warning messages:
1: In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) :
'CreateProcess' failed to run 'C:\Users\tksasa\AppData\Roaming\TinyTeX\bin\windows\pdflatex.exe -halt-on-error -interaction=batchmode "HelloWorld.tex"'
2: In system2(...) :
'CreateProcess' failed to run 'C:\Users\tksasa\AppData\Roaming\TinyTeX\bin\windows\pdflatex.exe -halt-on-error -interaction=batchmode "HelloWorld.tex"'
Execution halted

Sign in to join the discussion

Sign in with GitHub