Hello,
Thank you for creating the tinytex package. This is my first bug report on Github, my apologies if this is somewhat messy. I have run into a recent issue with compiling PDF reports, where LaTeX fails to find "multirow.sty". R and RStudio are updated, and I have tried reinstalling tinytex. I have also tried the developer version of tinytex.
Session info:
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763), RStudio 1.4.1103
Locale:
LC_COLLATE=Norwegian Bokm氓l_Norway.1252 LC_CTYPE=Norwegian Bokm氓l_Norway.1252
LC_MONETARY=Norwegian Bokm氓l_Norway.1252 LC_NUMERIC=C
LC_TIME=Norwegian Bokm氓l_Norway.1252
Package version:
graphics_4.0.4 grDevices_4.0.4 stats_4.0.4 tinytex_0.29.2 tools_4.0.4 utils_4.0.4 xfun_0.21
The following error message occurs when trying to install multirow via passing the error message to tinytex::parse_install (update also tried, and installing gpg):
R> tinytex::parse_install(
+ text = "! LaTeX Error: File `multirow.sty' not found."
+ )
tlmgr search --file --global "/multirow.sty"
tlmgr install multirow
tlmgr.pl: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: multirow [3k]
TeXLive::TLUtils::check_file_and_remove: checksums differ for C:\Users\andershu\AppData\Local\Temp\wkafIZc2Xt\1IqHVcL7y5/multirow.tar.xz:
TeXLive::TLUtils::check_file_and_remove: tlchecksum=1b0dad65336225702a2581e77defde185db8c29b3f9718a1c101c97031444ac158ae64cf824b4d6315e07e1ebee48939101730a7e3360c504e80010968da4397, arg=4aa22255ac84680f5a2ae53c95d9fced56042aaa292d1cb4970770ba3d79e23c18582a3c47df08ecd7ae72444416a44ced251e00e287110edc43b88c1974cbbf
TeXLive::TLUtils::check_file_and_remove: backtrace:
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm:2342: TeXLive::TLUtils::check_file_and_remove
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPDB.pm:1976: TeXLive::TLUtils::unpack
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPDB.pm:1811: TeXLive::TLPDB::_install_data
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPDB.pm:1727: TeXLive::TLPDB::not_virtual_install_package
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:3855: TeXLive::TLPDB::install_package
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:794: main::action_install
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:706: main::execute_action
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:377: main::main
TeXLive::TLUtils::check_file_and_remove: removing C:\Users\andershu\AppData\Local\Temp\wkafIZc2Xt\1IqHVcL7y5/multirow.tar.xz, but saving copy in C:\Users\andershu\AppData\Local\Temp\gvNZg7pckR
TLPDB::_install_data: downloading did not succeed (check_file_and_remove failed) for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/multirow.tar.xz
tlmgr.pl: package log updated: C:/Users/andershu/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr update --self
tlmgr install multirow
tlmgr.pl: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
[1/1, ??:??/??:??] install: multirow [3k]
TeXLive::TLUtils::check_file_and_remove: checksums differ for C:\Users\andershu\AppData\Local\Temp\qHlV0XmQdp\lHr09EigIC/multirow.tar.xz:
TeXLive::TLUtils::check_file_and_remove: tlchecksum=1b0dad65336225702a2581e77defde185db8c29b3f9718a1c101c97031444ac158ae64cf824b4d6315e07e1ebee48939101730a7e3360c504e80010968da4397, arg=4aa22255ac84680f5a2ae53c95d9fced56042aaa292d1cb4970770ba3d79e23c18582a3c47df08ecd7ae72444416a44ced251e00e287110edc43b88c1974cbbf
TeXLive::TLUtils::check_file_and_remove: backtrace:
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm:2342: TeXLive::TLUtils::check_file_and_remove
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPDB.pm:1976: TeXLive::TLUtils::unpack
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPDB.pm:1811: TeXLive::TLPDB::_install_data
-> C:/Users/andershu/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLPDB.pm:1727: TeXLive::TLPDB::not_virtual_install_package
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:3855: TeXLive::TLPDB::install_package
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:794: main::action_install
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:706: main::execute_action
-> C:\Users\andershu\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl:377: main::main
TeXLive::TLUtils::check_file_and_remove: removing C:\Users\andershu\AppData\Local\Temp\qHlV0XmQdp\lHr09EigIC/multirow.tar.xz, but saving copy in C:\Users\andershu\AppData\Local\Temp\GvqCRxi9dt
TLPDB::_install_data: downloading did not succeed (check_file_and_remove failed) for https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet/archive/multirow.tar.xz
tlmgr.pl: package log updated: C:/Users/andershu/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
Searching for multirow.sty yields the following results:
R> tinytex::tlmgr_search("/multirow.sty")
tlmgr search --file --global "/multirow.sty"
tlmgr.pl: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
multirow:
texmf-dist/tex/latex/multirow/multirow.sty
The issue is resolved by removing library(kableExtra) from r setup in the markdown document, as I assume the kableExtra packages tries to load multirow. However, for this particular report, I need kableExtra to create a table. Any help on the issue would be greatly appreciated.
Kind regards,
Anders Hus酶y
I see
TLPDB::_install_data: downloading did not succeed
and also
TeXLive::TLUtils::check_file_and_remove: checksums differ for
This means the download from the mirror was not correct.
This could be related to the CTAN mirror used or your current system and internet connection.
Last time it happens, it seems to have resolved by itself: https://github.com/yihui/tinytex/issues/216
So you could retry later to see if it resolves.
You can also try to change default mirror for TeX Live but it should choose a correct one near you by default.
tinytex::tlmgr(c("option", "repository"))
tinytex::tlmgr(
c('option', 'repository', 'http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet')
)
Thank you for your feedback. Unsure why my default mirror was located in the US, but problem solved by changing default mirror from https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet to
tinytex::tlmgr(
c('option', 'repository', 'https://ctan.uib.no/systems/texlive/tlnet/')
)
Just FYI, tinytex::tlmgr_repo() is a wrapper function of the above code, i.e., you could equivalently call
tinytex::tlmgr_repo('https://ctan.uib.no/systems/texlive/tlnet/')
Oups, I forgot about this function 馃槄 Thanks @yihui !
Most helpful comment
Just FYI,
tinytex::tlmgr_repo()is a wrapper function of the above code, i.e., you could equivalently call