You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
, 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
The text was updated successfully, but these errors were encountered:
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.
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
tinytex/R/install.R
Line 332 in f9205b4
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
The text was updated successfully, but these errors were encountered: