So it looks like we're halfway there.
I am able to knit a markdown document as a PDF, but there are numerous errors in the markdown terminal. I would like to get these resolved so that my outputs are cleaner and future issues will be easier to debug.
I followed executed the following code to uninstall my previous TinyTeX:
sudo /usr/local/bin/R
tinytex::uninstall_tinytex()
With TinyTeX uninstalled from /root/.TinyTeX
, I executed Yihui's code listed at on point 5, which you can see below.
wget -qO- "https://yihui.org/tinytex/install-unx.sh" \
| sh -s - --admin --no-path
sudo ~/.TinyTeX/bin/*/tlmgr path add
After that, I knitted the R markdown file. Below is the output, with numerous errors. For some reason, there are multiple attempts to install different packages or libraries. Are these R packages or more variations of TinyTeX? How can I install them for all users so that I can avoid these messages?
Edit: I believe the issue has to do with the following note the Maintenance section of TinyTex's documentation: This section is only for those who are not R Markdown users — everything is automatic for R Markdown users, and you don’t need to manually search for or install missing LaTeX packages.
Are the errors below LaTeX packages that are being attempted to install because of using R Markdown? Would executing tlmgr install multirow
, tlmgr install mktexlsr
, etc. adress this issue? Will I likely need to execute these with sudo
?
|......................................................................| 100%
ordinary text without R code
output file: File_Name.knit.md
/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS File_Name.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output File_Name.tex --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --lua-filter /opt/R/3.6.3/lib/R/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /opt/R/3.6.3/lib/R/library/rmarkdown/rmd/lua/latex-div.lua --include-in-header /tmp/RtmpnnJ9q4/rmarkdown-str720128520173.html
tlmgr: package repository https://ctan.math.illinois.edu/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: multirow [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository http://ctan.math.utah.edu/ctan/tex-archive/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: wrapfig [10k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository https://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: colortbl [4k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository https://ctan.math.illinois.edu/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: pdflscape [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository http://ctan.mirrors.hoobly.com/systems/texlive/tlnet (verified)
[1/2, ??:??/??:??] install: tabu [24k]
[2/2, 00:11/00:12] install: varwidth [5k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository https://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: threeparttable [6k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository https://mirrors.concertpass.com/tex-archive/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: threeparttablex [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository http://ctan.mirrors.hoobly.com/systems/texlive/tlnet (verified)
[1/2, ??:??/??:??] install: environ [2k]
[2/2, 00:05/00:07] install: trimspaces [1k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository https://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: ulem [7k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository http://ctan.mirrors.hoobly.com/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: makecell [5k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /home/user/.TinyTeX/texmf-var/web2c/tlmgr.log
TLUtils::add_remove_symlinks: add of symlinks had 1 error(s), see messages above.
add_link_dir_dir: destination /usr/local/bin not writable, no links from /home/user/.TinyTeX/bin/x86_64-linux.
tlmgr: An error has occurred. See above messages. Exiting.
Output created: File_Name.pdf