Skip to content

Commit

Permalink
import download_file() from xfun, since we don't use AppVeyor any more
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Feb 1, 2023
1 parent b24dcd7 commit 28c11e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import(stats)
import(tools)
import(utils)
importFrom(xfun,dir_exists)
importFrom(xfun,download_file)
importFrom(xfun,grep_sub)
importFrom(xfun,in_dir)
importFrom(xfun,is_linux)
Expand Down
4 changes: 0 additions & 4 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,6 @@ dir_copy = function(from, to) {
unlink(from, recursive = TRUE) == 0
}

download_file = function(...) {
xfun::download_file(..., quiet = Sys.getenv('APPVEYOR') != '')
}

# LaTeX packages that I use
install_yihui_pkgs = function() {
pkgs = readLines('https://yihui.org/gh/tinytex/tools/pkgs-yihui.txt')
Expand Down
2 changes: 1 addition & 1 deletion R/package.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' @import stats utils tools
#' @importFrom xfun grep_sub dir_exists in_dir
#' @importFrom xfun grep_sub dir_exists download_file in_dir
#' @keywords internal
'_PACKAGE'

Expand Down

0 comments on commit 28c11e2

Please sign in to comment.