Closed WilliamCipolli closed 1 month ago
Thanks for the report. This has already been fixed last week in the current dev version of knitr, which the issue guide (at the bottom of your post) asked you to try. I have also submitted the new version of knitr to CRAN, but it has been pending CRAN's review for a while.
Thanks for the quick response. I did try the development version, but I got a different error when trying to compile: "Unabled to find specified LaTeX program 'pdfLaTeX' on the system path."
I can't think of a possible reason why the dev version of knitr could possibly make RStudio fail to find pdflatex
. I guess this particular issue is irrelevant to knitr. If you install or reinstall TinyTeX on Windows, you'd better quit and restart RStudio after installation.
The new version of knitr is on CRAN now.
I'm still seeing issues but I'm wondering if it's a RStudio issue?
Here is a video of what I'm seeing. It doesn't go away if I switch to Sweave instead of knit.
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22621), RStudio 2024.4.1.748
Locale:
LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8
LC_MONETARY=English_United States.utf8 LC_NUMERIC=C
LC_TIME=English_United States.utf8
Package version:
evaluate_0.23 graphics_4.4.0 grDevices_4.4.0 highr_0.11 knitr_1.47.2 methods_4.4.0
stats_4.4.0 tools_4.4.0 utils_4.4.0 xfun_0.44 yaml_2.3.8
Any ideas here?
It appears to be an Rstudio issue. I've reverted to version 2023.12.1 and the issue no longer exists.
Yes, I think it's an RStudio issue.
I have a new machine and I completed the following:
I get an error in the log-file:
The issue is patched and the file will compile if I add the following to the preamble.
Session Info for knitr
And for tinytex:
When I use the development version, I get an error when compiling: "Unabled to find specified LaTeX program 'pdfLaTeX' on the system path." This goes away when I switch back to the current version. Note that I attempted to use development versions for knitr and tinytex. I don't think it would be tinytex, but just in case I tried using MiKTeX instead and I have the same issue.
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. 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/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.