-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
TinyTex download timeout limit #286
Comments
What is the command you run in the first place ?
You could try that on your R session. |
@matthewgson I just increased the default remotes::install_github('yihui/xfun') or set |
So quick ! I was also looking at adding it in xfun to increase the option. 😅 👍 |
Yihui Xie (22): use exit_call(), and return early if stringsAsFactors is already false clarify the title, since not all functions are written by me vectorize relative_path(): rstudio/bookdown#1091 use tinytex::is_tinytex() since v0.30 is on CRAN now update license year don't override the env var R_LIBS_USER if it has been set read both ~/.Renviron and .Renviron factor out path_sep() if no package is left after ignoring specified packages, return early when rechecking packages, make sure their dependencies are installed add a function to help clean up a dir that contains binary packages built with an older major version of R always return the names of broken packages add functions to query Homebrew dependencies of R packages add a function `retry()` to retry calling a function for a number of times in case of errors also split package names by spaces, e.g., "pandoc pandoc-citeproc" -> c("pandoc", "pandoc-citeproc") use tools::write_PACKAGES() instead of write.dcf() (to also update PACKAGES.gz/.rds) fix rstudio/tinytex#286: increase the timeout to 3600 seconds in download_file() add a function sort_file() to sort text lines in a file the argument `FUN` was renamed to `fun` in `process_file()`; this is for consistency with other functions like retry() and exit_call(), but might be a breaking change (if that's the case, I may revert this change) factor out the code to read sysreqsdb.rds use known dependencies instead of querying every time CRAN release v0.22 christophe dervieux (1): typo in on.exit() help page
# CHANGES IN xfun VERSION 0.23 ## NEW FEATURES - Added a `tinify()` function to compress PNG/JPEG images via [the Tinify API](https://tinypng.com/developers). - Added a `news2md()` function to convert package news to the Markdown format. This is mainly for converting the plain-text `NEWS` file and the `NEWS.Rd` file to `NEWS.md`. - Added a `format_bytes()` function to format numbers of bytes using a specified unit, e.g., `1024` can be formatted as `1 Kb`. - When using `pkg_load2()` in an **renv** project, it will use `renv::install()` to install missing packages by default to take advantage of **renv**'s caching feature (thanks, @chunyunma @cderv, #52). - `upload_win_builder()` no longer requires the system command `curl` to be available; if `curl` is not available, the R package **curl** will be used instead, which means this R package must be installed. In addition to uploading to the `ftp` server of win-builder, it's also possible to upload to <https://win-builder.r-project.org/upload.aspx>: call `upload_win_builder(..., server = 'https')`. This change was made so that it would be possible to continue to upload to win-builder in case it should stop supporting `ftp` (CRAN has discouraged package authors from using `ftp://`). ## BUG FIXES - Backticks are added to math environments by mistake when `\begin{}` and `\end{}` do not match (thanks, @oliviergimenez, #51). ## MINOR CHANGES - The argument `src` was renamed to `pkg` in `install_dir()`. - The argument `file` of `upload_win_builder()` defaults to `pkg_build()` now, i.e., by default, it will build a source package and upload it, so you do not need to build the package separately. # CHANGES IN xfun VERSION 0.22 ## NEW FEATURES - `relative_path()` is vectorized now. - Added a new function `retry()` to retry calling a function for a number of times in case of errors. - Added a new function `sort_file()`, which is a shorthand for `process_file(fun = sort)` to sort the lines in a text file. ## MAJOR CHANGES - The argument `FUN` was renamed to `fun` in `process_file()`. ## MINOR CHANGES - Inside `download_file()`, the `timeout` option in `options()` is set to 3600 seconds when it takes the default value of 60 seconds, which may not be enough for downloading large files (thanks, @matthewgson, rstudio/tinytex#286). # CHANGES IN xfun VERSION 0.21 ## NEW FEATURES - Added a new function `pkg_available()` to test if a package with a minimal version is available (thanks, @cderv, #45). - Added a new function `set_envvar()` to set environment variables and return their old values, so they could be restored later. - Added a new function `exit_call()` to call a function when a parent function exits. - Exported the internal function `read_bin()`. - Added an argument `verbose` to `bg_process()`. - `Rscript_call()` gains an `options` argument to pass command-line options to `Rscript` (thanks, @cderv, #48).
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.
The text was updated successfully, but these errors were encountered: