Closed rmoor closed 4 years ago
Could you try tinytex::tlmgr_install(c('texlive-scripts', 'dehyph-exptl'))
? Thanks!
Thanks a ton for the quick response!! It's working now:)
Excellent. Thanks a lot for letting me know! I had been puzzled by this issue for a while too on another machine.
👋 I encountered this today
tlmgr: action install returned an error; continuing.
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating fmtutil.cnf in /Users/setgree/Library/TinyTeX/texmf-dist
running fmtutil-sys --byengine euptex --no-error-if-no-format --no-error-if-no-engine=luametatex,luajithbtex,luajittex,mfluajit --status-file=/var/folders/dg/mqmjyqjd4hz56xbfbzfj491r0000gn/T/JrK7NbFsZQ/udSNB7MYai ...
OK: euptex.fmt/euptex platex-dev.fmt/euptex uplatex-dev.fmt/euptex eptex.fmt/euptex uplatex.fmt/euptex platex.fmt/euptex ptex.fmt/euptex uptex.fmt/euptex
running fmtutil-sys --byfmt mptopdf --no-error-if-no-engine=luametatex,luajithbtex,luajittex,mfluajit --status-file=/var/folders/dg/mqmjyqjd4hz56xbfbzfj491r0000gn/T/JrK7NbFsZQ/udSNB7MYai ...
tlmgr: An error has occurred. See above messages. Exiting.
OK: mptopdf.fmt/pdftex
tlmgr: package log updated: /Users/setgree/Library/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /Users/setgree/Library/TinyTeX/texmf-var/web2c/tlmgr-commands.log
tlmgr update --self
> sessionInfo()
R version 4.3.3 (2024-02-29)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] sessioninfo_1.2.2 knitr_1.45 ggplot2_3.5.0 metafor_4.4-0 numDeriv_2016.8-1.1
[6] metadat_1.2-0 Matrix_1.6-5 purrr_1.0.2 stringr_1.5.1 dplyr_1.1.4
loaded via a namespace (and not attached):
[1] sass_0.4.8 utf8_1.2.4 generics_0.1.3 stringi_1.8.3 lattice_0.22-5
[6] digest_0.6.34 magrittr_2.0.3 evaluate_0.23 grid_4.3.3 bookdown_0.38
[11] papaja_0.1.2.9000 fastmap_1.1.1 rprojroot_2.0.4 jsonlite_1.8.8 tinytex_0.49
[16] tinylabels_0.2.4 fansi_1.0.6 scales_1.3.0 jquerylib_0.1.4 cli_3.6.2
[21] rlang_1.1.3 munsell_0.5.0 withr_3.0.0 cachem_1.0.8 yaml_2.3.8
[26] tools_4.3.3 colorspace_2.1-0 mathjaxr_1.6-0 here_1.0.1 assertthat_0.2.1
[31] vctrs_0.6.5 R6_2.5.1 lifecycle_1.0.4 git2r_0.33.0 pkgconfig_2.0.3
[36] rmdfiltr_0.1.3 pillar_1.9.0 bslib_0.6.1 gtable_0.3.4 glue_1.7.0
[41] xfun_0.42 tibble_3.2.1 tidyselect_1.2.0 rstudioapi_0.15.0 htmltools_0.5.7
[46] nlme_3.1-164 rmarkdown_2.25 compiler_4.3.3
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 am using Rstudio and managed to compile pdf with tinytex from markdown last week. I mistakenly run the
tinytex::install_tinytex()
with my previous tinytex existing. Then I cannot render pdf from markdown, with the following error:pandoc: Could not find data file templates/--highlight-style.latex Error: pandoc document conversion failed with error 97
Then I tried to restart RStudio, uninstall tinytex
tinytex::uninstall_tinytex()
and reinstall it, update the packages. Still not working. I got the messages during the installation:Automated TeX Live installation using profile: ../tinytex.profile Loading http://osl.ugr.es/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb Installing TeX Live 2019 from: http://osl.ugr.es/CTAN/systems/texlive/tlnet (not verified) Platform: x86_64-darwin => 'MacOSX current (10.12-) on x86_64' Distribution: net (downloading) Using URL: http://osl.ugr.es/CTAN/systems/texlive/tlnet Directory for temporary files: /var/folders/22/jd2586bj6396cfzxrbh2jqmw0000gn/T/rat6TzDrXp Installing to: ./ Installing [1/5, time/total: ??:??/??:??]: texlive.infra [218k] Installing [2/5, time/total: 00:01/00:03]: texlive.infra.x86_64-darwin [342k] Installing [3/5, time/total: 00:02/00:02]: hyphen-base [22k] Installing [4/5, time/total: 00:03/00:03]: kpathsea [32k] Installing [5/5, time/total: 00:04/00:04]: kpathsea.x86_64-darwin [40k] Time used for installing the packages: 00:04 running mktexlsr ./texmf-dist ...
TLUtils::_create_config_files: giving up, unreadable: ./texmf-dist/web2c/fmtutil-hdr.cnf writing fmtutil.cnf to ./texmf-dist/web2c/fmtutil.cnf rm: install-tl.log: No such file or directory tlmgr: setting default package repository to http://mirror.ctan.org/systems/texlive/tlnet tlmgr: updating /private/var/folders/22/jd2586bj6396cfzxrbh2jqmw0000gn/T/texlive/tlpkg/texlive.tlpdb tlmgr: package repository http://osl.ugr.es/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) [1/27, ??:??/??:??] install: babel [150k] [2/27, 00:01/02:36] install: cm [233k] [3/27, 00:03/03:02] install: dehyph [46k] [4/27, 00:03/02:43] install: dvipdfmx.x86_64-darwin [426k] [5/27, 00:05/02:16] install: dvipdfmx [27k] [6/27, 00:05/02:12] install: etex [12k] [7/27, 00:06/02:36] install: glyphlist [25k] [8/27, 00:06/02:32] install: knuth-lib [30k] [9/27, 00:07/02:52] install: latex [157k] [10/27, 00:08/02:49] install: latex-bin.x86_64-darwin [1k] [11/27, 00:08/02:49] install: latex-bin [1k] [12/27, 00:09/03:10] install: latex-fonts [18k] [13/27, 00:09/03:07] install: latexconfig [4k] [14/27, 00:10/03:27] install: lm [11665k] [15/27, 00:15/00:27] install: lualibs [118k] [16/27, 00:16/00:28] install: luaotfload.x86_64-darwin [1k] [17/27, 00:16/00:28] install: luaotfload [562k] [18/27, 00:18/00:31] install: luatex.x86_64-darwin [1692k] [19/27, 00:20/00:30] install: luatex [13k] [20/27, 00:21/00:32] install: pdftex.x86_64-darwin [895k] [21/27, 00:23/00:33] install: pdftex [37k] [22/27, 00:23/00:33] install: plain [70k] [23/27, 00:24/00:34] install: tex-ini-files [4k] [24/27, 00:24/00:34] install: unicode-data [263k] [25/27, 00:25/00:35] install: xetex.x86_64-darwin [6837k] [26/27, 00:30/00:30] install: xetex [7k] [27/27, 00:30/00:30] install: xetexconfig [1k] running mktexlsr ... done running mktexlsr.
TLUtils::_create_config_files: giving up, unreadable: /private/var/folders/22/jd2586bj6396cfzxrbh2jqmw0000gn/T/texlive/texmf-dist/web2c/updmap-hdr.cfg tlmgr install: package ifluatex not present in repository. tlmgr install: package ifxetex not present in repository. tlmgr: package repository http://osl.ugr.es/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr install: package already present: dvipdfmx tlmgr install: package already present: lm tlmgr install: package already present: luaotfload [1/73, ??:??/??:??] install: amscls [32k] [2/73, 00:00/00:00] install: amsfonts [3542k] [3/73, 00:04/00:10] install: amsmath [30k] [4/73, 00:04/00:10] install: atbegshi [5k] [5/73, 00:05/00:13] install: atveryend [4k] [6/73, 00:05/00:13] install: auxhook [2k] [7/73, 00:05/00:13] install: bibtex.x86_64-darwin [84k] [8/73, 00:06/00:15] install: bibtex [15k] [9/73, 00:06/00:15] install: bigintcalc [7k] [10/73, 00:07/00:17] install: bitset [6k] [11/73, 00:07/00:17] install: booktabs [3k] [12/73, 00:07/00:17] install: caption [29k] [13/73, 00:08/00:20] install: dvips.x86_64-darwin [149k] [14/73, 00:09/00:22] install: dvips [34k] [15/73, 00:09/00:21] install: ec [258k] [16/73, 00:10/00:22] install: etexcmds [3k] [17/73, 00:11/00:25] install: etoolbox [9k] [18/73, 00:11/00:24] install: euenc [4k] [19/73, 00:11/00:24] install: fancyvrb [12k] [20/73, 00:12/00:27] install: float [3k] [21/73, 00:12/00:27] install: fontspec [27k] [22/73, 00:12/00:26] install: framed [8k] [23/73, 00:13/00:29] install: geometry [9k] [24/73, 00:13/00:29] install: gettitlestring [3k] [25/73, 00:14/00:31] install: graphics [15k] [26/73, 00:14/00:31] install: graphics-cfg [2k] [27/73, 00:15/00:33] install: graphics-def [10k] [28/73, 00:15/00:33] install: grfext [3k] [29/73, 00:15/00:33] install: grffile [4k] [30/73, 00:16/00:35] install: gsftopk.x86_64-darwin [41k] [31/73, 00:16/00:35] install: gsftopk [4k] [32/73, 00:17/00:37] install: helvetic [527k] [33/73, 00:18/00:35] install: hycolor [4k] [34/73, 00:19/00:37] install: hyperref [96k] [35/73, 00:19/00:36] install: iftex [4k] [36/73, 00:20/00:38] install: inconsolata [293k] [37/73, 00:21/00:38] install: infwarerr [3k] [38/73, 00:21/00:38] install: intcalc [6k] [39/73, 00:21/00:38] install: kvdefinekeys [3k] [40/73, 00:22/00:39] install: kvoptions [7k] [41/73, 00:22/00:39] install: kvsetkeys [4k] [42/73, 00:22/00:39] install: l3backend [12k] [43/73, 00:23/00:41] install: l3kernel [145k] [44/73, 00:24/00:42] install: l3packages [20k] [45/73, 00:24/00:41] install: latexmk.x86_64-darwin [1k] [46/73, 00:24/00:41] install: latexmk [91k] [47/73, 00:25/00:43] install: letltxmacro [3k] [48/73, 00:26/00:44] install: ltxcmds [5k] [49/73, 00:26/00:44] install: makeindex.x86_64-darwin [48k] [50/73, 00:26/00:44] install: makeindex [5k] [51/73, 00:27/00:45] install: mathspec [10k] [52/73, 00:27/00:45] install: metafont.x86_64-darwin [236k] [53/73, 00:28/00:45] install: metafont [33k] [54/73, 00:29/00:47] install: mfware.x86_64-darwin [119k] [55/73, 00:29/00:46] install: mfware [4k] [56/73, 00:30/00:47] install: natbib [17k] [57/73, 00:30/00:47] install: oberdiek [47k] [58/73, 00:31/00:48] install: pdfescape [5k] [59/73, 00:31/00:48] install: pdftexcmds [7k] [60/73, 00:31/00:48] install: refcount [3k] [61/73, 00:32/00:50] install: rerunfilecheck [4k] [62/73, 00:32/00:50] install: stringenc [23k] [63/73, 00:33/00:51] install: tex.x86_64-darwin [217k] [64/73, 00:34/00:51] install: tex [1k] [65/73, 00:34/00:51] install: times [281k] [66/73, 00:35/00:50] install: tipa [2809k] [67/73, 00:38/00:38] install: tools [41k] [68/73, 00:38/00:38] install: uniquecounter [3k] [69/73, 00:39/00:39] install: upquote [2k] [70/73, 00:39/00:39] install: url [6k] [71/73, 00:39/00:39] install: xkeyval [13k] [72/73, 00:40/00:40] install: xunicode [26k] [73/73, 00:40/00:40] install: zapfding [46k] tlmgr: action install returned an error; continuing. running mktexlsr ... done running mktexlsr.
TLUtils::_create_config_files: giving up, unreadable: /Users/rm/Library/TinyTeX/texmf-dist/web2c/updmap-hdr.cfg TinyTeX installed to /Users/rm/Library/TinyTeX
tinytex:::is_tinytex()
was TRUE.Sys.getenv('PATH')
returns: [1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin"tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'tlmgr.bat')
returns:Error in tinytex:::win_app_dir("TinyTeX", "bin", "win32", "tlmgr.bat") : Environment variable "APPDATA" not set.
(function() { tinytex:::tweak_path() print(Sys.which('pdflatex')) system2('pdflatex', '--version') })() pdflatex ""
returns"/usr/local/bin/pdflatex" pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019) kpathsea version 6.3.1 Copyright 2019 Han The Thanh (pdfTeX) et al. There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Han The Thanh (pdfTeX) et al. Compiled with libpng 1.6.36; using libpng 1.6.36 Compiled with zlib 1.2.11; using zlib 1.2.11 Compiled with xpdf version 4.01
I'm using OS. And have also tried windows (which has not installed tinytex before), got exactly the same problem as well. Seems the problem has less to do with the reinstallation. But it is weird that tinytex worked for me one week before not now....