You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you agree I'm happy to raise a PR and add a test case to cover this.
Here's a reprex illustrating the bug 👇
library(devtools)
#> Loading required package: usethis# let's give it a package to installpkg<-"docopt"if (pkg%in% rownames(installed.packages())) {
remove.packages(pkg)
}
#> Removing package from 'C:/Users/timjg/Documents/R/win-library/3.5'#> (as 'lib' is unspecified)directory<- tempdir()
create(directory, fields=list("Suggests"=pkg))
#> <U+2714> Setting active project to 'C:/Users/timjg/AppData/Local/Temp/RtmpGABqrf'#> <U+2714> Creating 'R/'#> <U+2714> Writing 'DESCRIPTION'#> Package: RtmpGABqrf#> Title: What the Package Does (One Line, Title Case)#> Version: 0.0.0.9000#> Authors@R (parsed):#> * First Last <first.last@example.com> [aut, cre] (<https://orcid.org/YOUR-ORCID-ID>)#> Description: What the package does (one paragraph).#> License: What license it uses#> Suggests:#> docopt#> Encoding: UTF-8#> LazyData: true#> <U+2714> Writing 'NAMESPACE'#> <U+2714> Setting active project to '<no active project>'# won't pass through our `type` arg to remotes::install_deps
install_dev_deps(directory, type= stop("oh no!"))
#> #> docopt (NA -> 0.6.1) [CRAN]#> Installing 1 packages: docopt#> Installing package into 'C:/Users/timjg/Documents/R/win-library/3.5'#> (as 'lib' is unspecified)#> package 'docopt' successfully unpacked and MD5 sums checked#> #> The downloaded binary packages are in#> C:\Users\timjg\AppData\Local\Temp\RtmpGABqrf\downloaded_packages# expected behaviour would be to throw the errorremotes::install_deps(directory, dependencies=TRUE, type= stop("oh no!"))
#> Error in serialize(list(repos, type), NULL, ascii = TRUE): oh no!
Hi all, I can see that all args besides
upgrade
and...
aren't being passed through fromdevtools::install_dev_deps()
toremotes::install_deps()
.devtools/R/install.R
Lines 150 to 168 in e463a32
If you agree I'm happy to raise a PR and add a test case to cover this.
Here's a reprex illustrating the bug 👇
Created on 2019-12-17 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: