Hi Yihui,
I'm in panic. I have to submit my thesis in 3 weeks. I've been using bookdown the last 5 months because I have zero experience using latex. I struggle the first 2 months getting to the right format of my Uni using thesisdown and other packages, but I could only make it work using bookdown. The thing is I had an issue with a floating table (I never used tables in the rest of my thesis until this final chapter) and tried to solve it as per this yihui answer: https://stackoverflow.com/questions/44850011/how-to-stop-bookdown-tables-from-floating-to-bottom-of-the-page-in-pdf
When tried to apply kableExtra I got the "Remote repository newer than local". I followed yuhui advices and I used tinytex::reinstall_tinytex() and now tinytex is not correctly installed and not compiling the book.
When installing I got the messages in the following file:
tinytex_install_messages.txt
When trying to compile the book using build book I get this in the .log file:
! Running the command C:Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
! kpathsea: Running mktexfmt xelatex.fmt
! The command name is C:Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
changing to verbose output I get this, but don't know what they mean:
Running the command C:Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
I can't find the format file `xelatex.fmt'!
kpathsea: Running mktexfmt xelatex.fmt
The command name is C:Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
I was unable to find any missing LaTeX packages from the error log Tesis.log.
! Running the command C:Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
! kpathsea: Running mktexfmt xelatex.fmt
! The command name is C:Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
Aditionally I'm getting this message oftenly. This message is normal when installing tinytex, but now it shows up every time I hit build book:

Please help, I麓m so closed to finish my thesis and I don麓t think I麓m able to rewrite it at this point.
Thanks,
Alfonso
By filing an issue to this repo, I promise that
xfun::session_info('tinytex'). 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/tinytex').I understand that my issue may be closed if I don't fulfill my promises.
I don't understand this error message, either, but you may try tinytex:::install_prebuilt().
I already tried it, and I don't get error messages when installing but it doesn't build either. For now I'm trying uninstalling and removing all the tinytex foldersand I will reinstall. If that doesn't work I have other computer where tinytex is working so I'm thinking in moving all the files to that computer. I'm just expecting not getting the same "Remote repository newer than local" error again, otherwise I will not know what to do.
I keep looking for answers and I ran into this:
https://stackoverflow.com/questions/59939055/rmarkdown-cant-find-pdflatex-fmt-file
Can this Running mktexfmt xelatex.fmt error be similar to that stackoverflow entry? Is the answer you provided also valid for this?
Hi,
I am also having this same issue. It seemed to start when I updated tinytex earlier today. I have tried reinstalling tinytex, basic Miktex, R, and R-studio to troubleshoot (i'm fairly novice when it comes to these sorts of issues).
whenever I try to compile my document I get the same error dialogue as Rcubes and the same thing:
output file: checker.knit.md
! Running the command C:Users\Bruin\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
! kpathsea: Running mktexfmt pdflatex.fmt
! The command name is C:Users\Bruin\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
Error: LaTeX failed to compile checker.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See checker.log for more info.
Execution halted
HELP! haha
This might be related.
When I updated tlmgr and reinstalled packages today, the installer ran into errors where the checksums did not match for luatex.win32 and luahbtex.win32.
TLUtils::check_file: checksums differ for C:\Users\MICHAE~1.SCH\AppData\Local\Temp\w5A3CMdi8I\x3Kpc6mpcb/luahbtex.win32.tar.xz:
TLUtils::check_file: tlchecksum=5e395b24bd9e710be88f1f2e2a3bd18022daf3cf1e2be18d27192eccea50f5ddaa122c6ae8cd4cce6b54d3a8608ae9e119d0dbf25d1e37aa2da8a986aa0a0c70, arg=04f90e04de858fb120852cebd84671f026b355fd1ac1acb5fee48f559f06709f8c25fa4f2ccf84a602de92ff728de5bfdc97610325c803540b349c2c3f1faf18
TLUtils::check_file: removing C:\Users\MICHAE~1.SCH\AppData\Local\Temp\w5A3CMdi8I\x3Kpc6mpcb/luahbtex.win32.tar.xz, but saving copy in C:\Users\MICHAE~1.SCH\AppData\Local\Temp\sl9ehotkiu
TLPDB::_install_package: downloading did not succeed (check_file_and_remove failed)
Obviously the install fails, and can be checked in the package update log. This appears to be a documented issue:
https://tug.org/pipermail/tex-live/2020-May/045620.html
https://tex.stackexchange.com/questions/544064/installation-of-texlive-fails-while-downloading-luatex-checksums-differ
I'm assuming once the new binaries are out and updated on the mirrors that this might be resolved.
Thanks for the comment @mps9506 .
So I'm not entirely sure I got your post entirely. So you think this should be temporary? Do you know how long it takes to release new binaries?
I don't know if you have a better understanding on latex but can I still use a tinytex version that has not been updated yet or I will run into this issue as well?
Hey all,
Just wanted to add that I am running into the same issue.
Running the command C:\Users\wht32\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
kpathsea: Running mktexfmt pdflatex.fmt
The command name is C:\Users\wht32\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
I was unable to find any missing LaTeX packages from the error log test.log.
! Running the command C:\Users\wht32\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
! kpathsea: Running mktexfmt pdflatex.fmt
! The command name is C:\Users\wht32\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
Error: LaTeX failed to compile test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test.log for more info.
Execution halted
When I tried to run the fix that @yihui mentioned in the SO link
https://stackoverflow.com/questions/59939055/rmarkdown-cant-find-pdflatex-fmt-file
I got the following:
> tinytex::tlmgr_install(c('texlive-scripts', 'dehyph-exptl'))
tlmgr install texlive-scripts dehyph-exptl
tlmgr.pl: package repository http://mirrors.ibiblio.org/pub/mirrors/CTAN/systems/texlive/tlnet (verified)
tlmgr.pl install: package already present: texlive-scripts
[1/1, ??:??/??:??] install: dehyph-exptl [94k]
Cannot run wrapper due to missing luatex.dll
running mktexlsr ...
done running mktexlsr.
Cannot run wrapper due to missing luatex.dll
Cannot run wrapper due to missing luatex.dll
Cannot run wrapper due to missing luatex.dll
regenerating language.dat
regenerating language.def
regenerating language.dat.lua
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "language.dat" ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "language.dat".
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "language.def" ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "language.def".
running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "language.dat.lua" ...
done running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --byhyphen "language.dat.lua".
tlmgr.pl: package log updated: C:/Users/wht32/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tinytex:::install_prebuilt() didn't fix it for me either.
@Rcubes I only know there has been much chatter on the tex-live list about the packages not installling. I'm not 100% it is related but seems to be the cause for grief on my end. Maintainers seem to be on it: https://tug.org/pipermail/tex-live/2020-May/045651.html
Thanks for the help/info @mps9506 !
Indeed, many thanks for the info @mps9506!
For those who have had the trouble reported in this issue, please trytinytex:::install_prebuilt() if you are a Windows user. Sorry for the trouble, and thanks for your patience!
Yes, there are currently some hiccups with checksums being wrong, we are investigating the reasons for it by now. On normal days when the build runs through without problems, all is fine, but when we have a build failure in TeX Live, some problems occur.
Please wait 1-2 days and retry, it should be settled sooner or later.
@norbusan thanks for the news.
In my case I'm super worried about this so I will be trying this regularly and I'll keep you all guys posted about any updates.
You can use MikTex as a replacement until its resolved
Sounds like some folks are still having issues. I can verify that I was able to successfully install from nearby mirrors this morning. If you are really itching to fix your install, point the repo argument in
install_tinytex() to a recently updated mirror: https://www.ctan.org/mirrors/mirmon
Hi Guys,
As @mps9506 says I was also able to install tinytex sucesfully. In my case I ran unistall_tinytex() and then install_tinytex(). I didn麓t need to use the repo argument, so it is posibble this issue is already solved in all mirrors.
Thanks so much @mps9506 to keep everyone posted about this.
Thanks everyone
Sounds like some folks are still having issues. I can verify that I was able to successfully install from nearby mirrors this morning. If you are really itching to fix your install, point the
repoargument in
install_tinytex()to a recently updated mirror: https://www.ctan.org/mirrors/mirmon
Hi Guys,
As @mps9506 says I was also able to install tinytex sucesfully. In my case I ranunistall_tinytex()and theninstall_tinytex(). I didn麓t need to use therepoargument, so it is posibble this issue is already solved in all mirrors.
Thanks so much @mps9506 to keep everyone posted about this.
Thanks everyone
Yes and yes this fix work. Thank you.
Sounds like some folks are still having issues. I can verify that I was able to successfully install from nearby mirrors this morning. If you are really itching to fix your install, point the
repoargument in
install_tinytex()to a recently updated mirror: https://www.ctan.org/mirrors/mirmonHi Guys,
As @mps9506 says I was also able to install tinytex sucesfully. In my case I ranunistall_tinytex()and theninstall_tinytex(). I didn麓t need to use therepoargument, so it is posibble this issue is already solved in all mirrors.
Thanks so much @mps9506 to keep everyone posted about this.
Thanks everyoneYes and yes this fix work. Thank you.
When I try uninstall this is the following error I get:

I get the same thing, but that is not an error. Tinytex uninstalls despite those messages.
@Rcubes You are correct. @AngelClaudio You can ignore these messages. They won't stop R, and tinytex::install_tinytex() should just proceed to install TinyTeX.
@Rcubes You are correct. @AngelClaudio You can ignore these messages. They won't stop R, and
tinytex::install_tinytex()should just proceed to install TinyTeX.
@yihui For me it does not install unfortunately, it stops at that line, nothing else happens.
Nothing else is supposed to happen. If you check the path where TinyTex was supposed to be installed you'll find nothing. I would say go ahead and install tinytex with the commands mentioned above.
To anyone who is still having problems with tinytex::install_tinytex(), please restart your R session, and try:
remotes::install_github('yihui/tinytex')
tinytex:::install_prebuilt()
This should work for Windows, macOS, and Ubuntu users.
when I uninstall_tinytex I get:
Error in tinytex::uninstall_tinytex() :
TinyTeX does not seem to be installed.
When I check tinytex:::is_tinytex()
I get FALSE
when I 'install_tinytex' I get:
trying URL 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip'
Content length 331 bytes
downloaded 23.1 MB
trying URL 'https://yihui.org/gh/tinytex/tools/pkgs-custom.txt'
Content length 81 bytes
downloaded 547 bytes
trying URL 'https://yihui.org/gh/tinytex/tools/tinytex.profile'
Content length 81 bytes
downloaded 183 bytes
Starting to install TinyTeX to C:\Users\wht32\AppData\Roaming/TinyTeX. It will take a few minutes.
Automated TeX Live installation using profile: ../tinytex.profile
Loading http://mirrors.rit.edu/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\wht32\AppData\Local\Temp\RtmpQZhPGk\install-tl-20200515\install-tl: signature verification error of C:\Users\wht32\AppData\Local\Temp\u0VRh3GUZz\m6qWWu_SwC from http://mirrors.rit.edu/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb: cryptographic signature verification of
C:\Users\wht32\AppData\Local\Temp\u0VRh3GUZz\sB5rYrb_XC
against
http://mirrors.rit.edu/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
failed. Output was:
gpg: Signature made Thu May 14 10:34:16 2020 EDT
gpg: using RSA key 4CE1877E19438C70
gpg: BAD signature from "TeX Live Distribution <[email protected]>" [ultimate]
Please try from a different mirror and/or wait a few minutes
and try again; usually this is because of transient updates.
If problems persist, feel free to report to [email protected].
Please quit and reopen your R session and IDE (if you are using one, such as RStudio or Emacs) and check if tinytex:::is_tinytex() is TRUE.
Warning message:
In file.remove("TinyTeX/install-tl.log") :
cannot remove file 'TinyTeX/install-tl.log', reason 'No such file or directory
Not sure if this is related to the previous error with the checksums, or something that happened while I was fiddling with it trying to get it to work before it was determined that the checksums were the issue.
Any help would be greatly appreciated.
@wht10 Please see https://github.com/yihui/tinytex/issues/210#issuecomment-629457990 above.
Nothing else is supposed to happen. If you check the path where TinyTex was supposed to be installed you'll find nothing. I would say go ahead and install tinytex with the commands mentioned above.
Understood, I tried installing using the aforementioned repo but still got the following error:

Will try uninstalling and using prebuilt again.
@wht10 Please see #210 (comment) above.
@yihui The prebuilt did indeed work! Thank you so much!
If I try to knit I get this error:

@AngelClaudio Please see https://github.com/yihui/tinytex/issues/210#issuecomment-629457990 above.
@AngelClaudio Please see #210 (comment) above.
@yihui Thanks you so much for helping, after installing the "prebuilt" as recommended the knitting to PDF works like before, not sure what happened but if you're interested this was the R Markdown output of what it did:
tlmgr.pl: package repository http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: pdflscape [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/Angel/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr.pl: package repository http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: threeparttablex [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/Angel/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr.pl: package repository http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: environ [2k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/Angel/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr.pl: package repository http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: trimspaces [1k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/Angel/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr.pl: package repository http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: makecell [5k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/Angel/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
@yihui should we in the future look for reinstalling a non "prebuild" or this should be fine for quite a while? Thanks!
@yihui I may have spoken a little too soon.
I got a similar error referencing gpg: BAD signature
and that pdflscape.sty not found.
This was after installing your prebuilt and getting it to work on the default document that is generated when you open a new .Rmd file.
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Movie_Recommendation_Report.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Movie_Recommendation_Report.tex --self-contained --table-of-contents --toc-depth 2 --number-sections --highlight-style pygments --pdf-engine xelatex --variable graphics --lua-filter "C:/Users/wht32/OneDrive/Documents/R/win-library/4.0/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "C:/Users/wht32/OneDrive/Documents/R/win-library/4.0/rmarkdown/rmd/lua/latex-div.lua" --variable "geometry:margin=1in" --include-in-header "C:\Users\wht32\AppData\Local\Temp\RtmpoR1Jle\rmarkdown-str3b241b837e4a.html"
output file: Movie_Recommendation_Report.knit.md
This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
tlmgr search --file --global "/pdflscape.sty"
C:\Users\wht32\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: signature verification error of C:/Users/wht32/AppData/Roaming/TinyTeX/tlpkg/texlive.tlpdb.a2930c72e20c11f417b2ddd999476d01 from http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb: cryptographic signature verification of
C:\Users\wht32\AppData\Local\Temp\Yv2BPbrGge\zn_zrR28zp
against
http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
failed. Output was:
gpg: Signature made Thu May 14 10:34:16 2020 EDT
gpg: using RSA key 4CE1877E19438C70
gpg: BAD signature from "TeX Live Distribution <[email protected]>" [ultimate]
Please try from a different mirror and/or wait a few minutes
and try again; usually this is because of transient updates.
If problems persist, feel free to report to [email protected].
! LaTeX Error: File `pdflscape.sty' not found.
! Emergency stop.
<read *>
Error: LaTeX failed to compile Movie_Recommendation_Report.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Movie_Recommendation_Report.log for more info.
Execution halted
I thought I might try installing pdflscape directly but got a similar error.
> tinytex::tlmgr_install("pdflscape")
tlmgr install pdflscape
C:\Users\wht32\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: signature verification error of C:/Users/wht32/AppData/Roaming/TinyTeX/tlpkg/texlive.tlpdb.a2930c72e20c11f417b2ddd999476d01 from http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb: cryptographic signature verification of
C:\Users\wht32\AppData\Local\Temp\vRPMx1v3Qw\RIQ8dipRMj
against
http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
failed. Output was:
gpg: Signature made Thu May 14 10:34:16 2020 EDT
gpg: using RSA key 4CE1877E19438C70
gpg: BAD signature from "TeX Live Distribution <[email protected]>" [ultimate]
Please try from a different mirror and/or wait a few minutes
and try again; usually this is because of transient updates.
If problems persist, feel free to report to [email protected].
tlmgr update --self
tlmgr install pdflscape
C:\Users\wht32\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: signature verification error of C:/Users/wht32/AppData/Roaming/TinyTeX/tlpkg/texlive.tlpdb.a2930c72e20c11f417b2ddd999476d01 from http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb: cryptographic signature verification of
C:\Users\wht32\AppData\Local\Temp\5a_BSFt0Cu\6kH99jodiZ
against
http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
failed. Output was:
gpg: Signature made Thu May 14 10:34:16 2020 EDT
gpg: using RSA key 4CE1877E19438C70
gpg: BAD signature from "TeX Live Distribution <[email protected]>" [ultimate]
Please try from a different mirror and/or wait a few minutes
and try again; usually this is because of transient updates.
If problems persist, feel free to report to [email protected].
@AngelClaudio I don't prefer providing a prebuilt version (because I don't fully understand the licenses of TeX Live and the many LaTeX packages). For now, please treat it as a temporary workaround. That's why install_prebuilt() is not an exported function in tinytex. Hopefully the current TeX Live turbulence will be gone in a couple of days, and you should be able to tinytex::install_tinytex() as usual.
@wht10 You have to use this workaround before the gpg issue is ultimately resolved (https://tug.org/pipermail/tex-live/2020-May/045702.html):
tinytex::tlmgr(c('--verify-repo=none', 'install', 鈥榩dflscape'))
Today's build should fix all the errors, at least for now. The signature is now fine, and no invalid checksums, at least as far as I can see.
@yihui Thanks finally for the solution.
@yihui yeah, the
tinytex:::install_prebuilt() worked...
Thanks for the solution...
That worked for me too. Thank you for the solution @yihui Appreciate it!!
@yihui So I have installed the prebuilt, and used your pdflscape fix and I tried to knit the .Rmd this morning.I got this error.
! LaTeX Error: Unknown float option `H'.
I tried using your install fix that I used for pdflscape on float and this was the output:
> tinytex::tlmgr(c("--verify-repo=none", "install", "float"))
tlmgr --verify-repo=none install float
tlmgr.pl: package repository http://ctan.math.illinois.edu/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr.pl install: package already present: float
I tried to knit after this and still got the "float option 'H'" error.
Do you know if this is an issue with tinytex, latex, or perhaps maybe my .Rmd?
@wht10 That's a different issue. Please follow the issue guide and provide the required info. Thanks!
I have tested tinytex::install_tinytex() on my local macOS, Windows, and Ubuntu, as well as on Travis and AppVeyor. Both the "missing pdflatex.fmt/xelatex.fmt or luatex.dll" and "gpg bad signature" issues are gone. If they are not on your machine, you probably need to wait for one more day or two till your CTAN mirror becomes up-to-date.
It seems a large update ;)

Haven't fully tested yet though, but thanks
Hola, tengo problemas al compilar un Rmarkdown, lo siguiente es lo que aparece al compilar un documento.
驴Me podr铆an ayudar a arreglar este error?, gracias.

Hi @Robert-Estiven ,
It is best if you ask your question on RStudio Community There is a broad community to help there, and isolate a potential issue.
If you think you found an issue, you can open a ticket in the correct GH repo.
From the error message you have, it seems you are using _octave_ binary in a chunk and that the binary is not correctly found. It does not seem related with this ticket.
Happy to continue the discussion in the question you'll open in the RStudio community. Thank you !
Most helpful comment
Sounds like some folks are still having issues. I can verify that I was able to successfully install from nearby mirrors this morning. If you are really itching to fix your install, point the
repoargument ininstall_tinytex()to a recently updated mirror: https://www.ctan.org/mirrors/mirmon