Repository navigation
TinyTex download timeout limit #286
Description
Activity
What is the command you run in the first place ?
install_tinytex()?
If so I think the different tries are different download methods but I am not sure we set a timeout. Know thatdownload.file()has one by default of 60 seconds. See?download.file()The timeout for many parts of the transfer can be set by the option timeout which defaults to 60 seconds. This is often insufficient for downloads of large files (50MB or more) and so should be increased when download.file is used in packages to do so. Note that the user can set the default timeout by the environment variable R_DEFAULT_INTERNET_TIMEOUT in recent versions of R, so to ensure that this is not decreased packages should use something like
options(timeout = max(300, getOption("timeout")))You could try that on your R session.
Reacted by Yihui Xie, Matthew Son and x-hey@matthewgson I just increased the default
timeoutvalue to 3600 seconds inxfun::download_file(). You can either install the development version of xfun:remotes::install_github('yihui/xfun')
or set
options(timeout)as suggested by @cderv above. Thanks!Reacted by Matthew SonReacted by Christophe DervieuxSo quick ! I was also looking at adding it in xfun to increase the option. 😅 👍
Reacted by Yihui Xie- added a commit that references this issue
on Mar 16, 2021 - added a commit that references this issue
on Jun 1, 2021 - added a commit that references this issue
on May 21, 2024 - added a commit that references this issue
on May 11, 2026 - added a commit that references this issue
on May 14, 2026
Hi, I'm wondering if the timeout limit was necessary when downloading TinyTex from R session. In my sample, it fails 2 times and take 83 seconds in third time to download the package. Could you consider increasing default timeout limit (say, 3 minutes?), or change its behavior to start right from the third approach?
SessionInfo
By filing an issue to this repo, I promise that
xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/tinytex').I understand that my issue may be closed if I don't fulfill my promises.