Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid creating symlinks in $HOME/bin? #456

Open
SciLiciumTheo opened this issue Nov 26, 2024 · 1 comment
Open

Avoid creating symlinks in $HOME/bin? #456

SciLiciumTheo opened this issue Nov 26, 2024 · 1 comment

Comments

@SciLiciumTheo
Copy link

Hello,

Thanks a lot for this very helpful TeX distribution!

I stumbled upon a particular edge case/problem.

I am using conda to manage separated environments for different projects.
I can install R and the tinytex R package in a conda environment, separating them from the rest of my setup.
I can then install TinyTex from R to whatever location I want, using tinytex::install_tinytex(force=TRUE, dir = install_dir). This is great to help keep things separated.

However, from

os_index, win_app_dir('TinyTeX'), '~/.TinyTeX', '~/Library/TinyTeX'
, it seems that tinytex is only looking at the default install locations. This is confirmed (in a way) by https://yihui.org/tinytex/:
For Linux users, TinyTeX will be installed to $HOME/.TinyTeX and symlinks of executables (such as pdflatex) are created under $HOME/bin (or $HOME/.local/bin if it exists), which should be on the PATH environment variable

This prevents creating totally separated environments for different projects, and IMO somehow defeats the purpose of being able to install in a custom location as the symlinks are (expected to be) in a fixed location.

Would it be possible to somehow store the install location without creating symlinks in $HOME, (e.g. in the R install directory, which is separated for each conda install?) in order to allow for effectively separated installations?

Thank you in advance,
All the best,
Theo

@cderv
Copy link
Contributor

cderv commented Nov 27, 2024

tinytex::install_tinytex() has a add_path argument that default to TRUE. This will make a call to tlmgr path add which is I believe what creates the symlink.

So you should be able to set add_path = FALSE to avoid this.

Did you try ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants