Skip to content

Commit

Permalink
specify the default library location since base_pkgs() can "hang"
Browse files Browse the repository at this point in the history
Co-authored-by: Yihui Xie <xie@yihui.name>
  • Loading branch information
mmaechler and yihui committed May 20, 2022
1 parent 4992cfa commit 20a3147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
@@ -1,5 +1,6 @@
# CHANGES IN xfun VERSION 0.32

- Fixed the issue that `xfun::base_pkgs()` could hang R (thanks, @mmaechler, #66).

# CHANGES IN xfun VERSION 0.31

Expand Down
2 changes: 1 addition & 1 deletion R/packages.R
Expand Up @@ -344,7 +344,7 @@ news2md = function(package, ..., output = 'NEWS.md', category = TRUE) {
#' @export
#' @examplesIf interactive()
#' xfun::base_pkgs()
base_pkgs = function() rownames(installed.packages(priority = 'base'))
base_pkgs = function() rownames(installed.packages(.Library, priority = 'base'))

# update one package (from source by default)
pkg_update_one = function(pkg, type = 'source') {
Expand Down

0 comments on commit 20a3147

Please sign in to comment.