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, 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 'https://yihui.org/tinytex/TinyTeX-1.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 https://mirror.aarnet.edu.au/pub/CTAN/systems/texlive/tlnet (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 https://mirror.aarnet.edu.au/pub/CTAN/systems/texlive/tlnet (verified)
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr --repository http://www.preining.info/tlgpg/ install tlgpg
tlmgr: package repository http://www.preining.info/tlgpg/ (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 'https://mirror.aarnet.edu.au/pub/CTAN/systems/texlive/tlnet'
tlmgr: setting default package repository to https://mirror.aarnet.edu.au/pub/CTAN/systems/texlive/tlnet
tlmgr: updating /Users/ <my-user-name> /Library/TinyTeX/tlpkg/texlive.tlpdb
tlmgr update --list
tlmgr: package repository https://mirror.aarnet.edu.au/pub/CTAN/systems/texlive/tlnet (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 don't know what it 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'!

How can I solve this?

> 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  
1
  • Is this package available on GitHub or DockerHub? Maybe you just need to get it from elsewhere. Commented Feb 25 at 22:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.