diff --git a/DESCRIPTION b/DESCRIPTION index 97a6d55..dbbe852 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: xfun Type: Package Title: Supporting Functions for Packages Maintained by 'Yihui Xie' -Version: 0.47.8 +Version: 0.47.9 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Wush", "Wu", role = "ctb"), diff --git a/R/base64.R b/R/base64.R index 45b3ecc..6a83ab5 100644 --- a/R/base64.R +++ b/R/base64.R @@ -149,7 +149,7 @@ mime_type = function(x, use_mime = loadable('mime'), empty = 'text/plain') { if (Sys.which(cmd) == '') { if (!is_windows()) stop("The 'file' command is not found") cmd = 'powershell' - arg = c('-ExecutionPolicy', 'Bypass', '-File', shQuote(pkg_file('scripts', 'mime-type.ps1'))) + arg = c('-ExecutionPolicy', 'Bypass', '-File', shQuote(pkg_file('scripts', 'mime-type.txt'))) } system2(cmd, c(arg, shQuote(x)), stdout = TRUE)[1] } diff --git a/inst/scripts/mime-type.ps1 b/inst/scripts/mime-type.txt similarity index 100% rename from inst/scripts/mime-type.ps1 rename to inst/scripts/mime-type.txt