Skip to content

Commit aaa1fd3

Browse files
authored
Remove threads arg of install_deps() (#154)
If `Ncpus` was also specified, that led to an error. Closes #153.
1 parent d6784d8 commit aaa1fd3

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

NEWS.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* `install_github()`'s previously deprecated `username` argument has been
44
removed. (#142)
55

6+
* `install_deps()`'s `threads` argument has been removed, use the `Ncpus`
7+
argument instead (#153, #154)
8+
69
# Development
710

811
* Remotes can be forced to use only its internal code by setting the

R/install.R

-4
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ safe_build_package <- function(pkgdir, build_opts, dest_path, quiet, use_pkgbuil
102102
#' Install package dependencies if needed.
103103
#'
104104
#' @inheritParams package_deps
105-
#' @param threads Number of threads to start, passed to
106-
#' \code{\link[utils]{install.packages}} as \code{Ncpus}.
107105
#' @param ... additional arguments passed to \code{\link[utils]{install.packages}}.
108106
#' @param build If \code{TRUE} build the pacakge before installing.
109107
#' @param build_opts Options to pass to `R CMD build`.
@@ -112,7 +110,6 @@ safe_build_package <- function(pkgdir, build_opts, dest_path, quiet, use_pkgbuil
112110
#' \dontrun{install_deps(".")}
113111

114112
install_deps <- function(pkgdir = ".", dependencies = NA,
115-
threads = getOption("Ncpus", 1),
116113
repos = getOption("repos"),
117114
type = getOption("pkgType"),
118115
...,
@@ -135,7 +132,6 @@ install_deps <- function(pkgdir = ".", dependencies = NA,
135132
packages,
136133
dependencies = dep_deps,
137134
...,
138-
Ncpus = threads,
139135
quiet = quiet,
140136
upgrade = upgrade,
141137
build = build,

man/install_deps.Rd

+3-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)