最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

r - Installing TinyTex is causing errors - Stack Overflow

programmeradmin2浏览0评论

I am trying to install TinyTex, which I have done easily and successfully in the past.

I am using RStudio 2024.12.0+467 and R v4.4.2 (sessionInfo() below) on my intel Mac.

But today, when it is urgent-ish (of course), I get an error:

> tinytex::install_tinytex()
Found '/usr/local/bin/tlmgr', which indicates a LaTeX distribution may have existed in the system.
Continue the installation anyway? (Y/N) Y
trying URL '.tgz'
Content type 'application/octet-stream' length 89127826 bytes (85.0 MB)
==================================================
downloaded 85.0 MB

tlmgr install tlgpg
tlmgr install: package tlgpg not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: package repository  (verified)
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr update --self
tlmgr install tlgpg
tlmgr install: package tlgpg not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: package repository  (verified)
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr --repository / install tlgpg
tlmgr: package repository / (not verified: pubkey missing)
[1/2, ??:??/??:??] install: tlgpg.universal-darwin [752k]
[2/2, 00:03/00:03] install: tlgpg [1k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /Users/ <my-user-name> /Library/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /Users/ <my-user-name> /Library/TinyTeX/texmf-var/web2c/tlmgr-commands.log
tlmgr option repository ''
tlmgr: setting default package repository to 
tlmgr: updating /Users/ <my-user-name> /Library/TinyTeX/tlpkg/texlive.tlpdb
tlmgr update --list
tlmgr: package repository  (verified)
tlmgr: no updates available

Those URLs I can access using my web browser

Changing to a different repos makes no difference; the errors remain.

I just don't know what it all means, or what to do, or why it has worked so smoothly before but not now.

The reason why I was re-installing was to see if this error would disappear; perhaps the two are related:

R CMD pdflatex file-name.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt [ERROR]: -user mode but path setup is -sys type, bailing out.
I can't find the format file `pdflatex.fmt'!

Any help greatly appreciated. I am at a loss.

P.

> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-apple-darwin20
Running under: macOS Sequoia 15.2

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.4-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.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: Australia/Brisbane
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.4.2 tools_4.4.2    tinytex_0.54   xfun_0.50  
发布评论

评论列表(0)

  1. 暂无评论