Skip to content

Commit

Permalink
remove v from version if passed as in version argument. (rstudio#318)
Browse files Browse the repository at this point in the history
This would lead to output of `xfun::github_releases('yihui/tinytex-releases')` working in `install_tinytex()`
  • Loading branch information
cderv authored Jul 20, 2021
1 parent 09b9e42 commit 54bd1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ install_prebuilt = function(
if (xfun::file_ext(pkg) == '') {
if (version == 'latest') {
version = xfun::github_releases('yihui/tinytex-releases', version)
version = gsub('^v', '', version)
}
version = gsub('^v', '', version)
installer = if (pkg == '') 'TinyTeX' else pkg
# e.g., TinyTeX-0.zip, TinyTeX-1-v2020.10.tar.gz, ...
pkg = paste0(
Expand Down

0 comments on commit 54bd1e4

Please sign in to comment.