The docs say that pkg_ref() accepts a list of package names, but it does not.
library(dplyr)
library(riskmetric)
packageVersion("riskmetric")
[1] ‘0.2.4’
# This works
c("dplyr", "ggplot2") %>%
pkg_ref(source = "pkg_cran_remote", repos = c("https://cran.rstudio.com"))
# This throws an error
list("dplyr", "ggplot2") %>%
pkg_ref(source = "pkg_cran_remote", repos = c("https://cran.rstudio.com"))
Error in as_pkg_ref.default(x[i], source = source) :
Don't know how to convert object class 'list' to class 'pkg_ref
The docs say that
pkg_ref()
accepts a list of package names, but it does not.