Skip to content

Commit

Permalink
install_dir() installs current dir by default
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 6, 2025
1 parent 7780b7b commit 7375d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ broken_packages = function(reinstall = TRUE) {
#' @param install_opts The options for \command{R CMD INSTALL}.
#' @export
#' @return Invisible status from \command{R CMD INSTALL}.
install_dir = function(pkg, build = TRUE, build_opts = NULL, install_opts = NULL) {
install_dir = function(pkg = '.', build = TRUE, build_opts = NULL, install_opts = NULL) {
if (build) {
pkg = pkg_build(pkg, build_opts)
on.exit(unlink(pkg), add = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion man/install_dir.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7375d42

Please sign in to comment.