Skip to content

Commit

Permalink
fix the bug in broken_packages() reported at rstudio/rmarkdown#1990 (…
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jun 30, 2021
1 parent b3162ce commit 1507dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xfun
Type: Package
Title: Supporting Functions for Packages Maintained by 'Yihui Xie'
Version: 0.24.1
Version: 0.24.2
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"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CHANGES IN xfun VERSION 0.25

- Fixed a bug in `broken_packages()` (thanks, @PythonCoderUnicorn, rstudio/rmarkdown#1990).

# CHANGES IN xfun VERSION 0.24

Expand Down
2 changes: 1 addition & 1 deletion R/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ broken_packages = function(reinstall = TRUE) {
if (!loadable(p, new_session = TRUE)) p
}))
if (length(p) && reinstall) {
remove.packages(p, lib); pkg_install(pkgs, lib)
remove.packages(p, lib); pkg_install(p, lib = lib)
}
p
}))
Expand Down

0 comments on commit 1507dbf

Please sign in to comment.