Skip to content

Commit

Permalink
write download method to .Rprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 2, 2024
1 parent 6356799 commit 210fc37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deps.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
if (getRversion() <= '3.1.3') for (m in c('wget', 'curl')) if (Sys.which(m) != '') {
options(download.file.method = m); break
options(download.file.method = m);
cat(sprintf('\noptions(download.file.method = "%s")\n', m), file = '~/.Rprofile', append = TRUE)
break
}
install.packages(c('commonmark', 'rbibutils'), repos = 'https://cloud.r-project.org', INSTALL_opts = '--no-help')
system2('git', c('clone', '--depth=1', 'https://github.com/yihui/xfun'))
Expand Down

0 comments on commit 210fc37

Please sign in to comment.