diff --git a/tools/pkgdown/assets/install.R b/tools/pkgdown/assets/install.R index b1421b548..3214e2113 100644 --- a/tools/pkgdown/assets/install.R +++ b/tools/pkgdown/assets/install.R @@ -10,8 +10,18 @@ } stream <- "stable" - if (!is.null(source_arg) && grepl("\\?stream=[a-z]+$", source_arg)) { - stream <- sub("^.*\\?stream=", "", source_arg) + if (!is.null(source_arg)) { + if (grepl("\\?stream=[a-z]+$", source_arg)) { + stream <- sub("^.*\\?stream=", "", source_arg) + } else if (grepl("\\?dev$", source_arg) || grepl("\\?devel$", source_arg)) { + stream <- "devel" + } else if (grepl("\\?rc$", source_arg)) { + stream <- "rc" + } + } + + if (stream == "dev") { + stream <- "devel" } message("Installing pak from stream ", stream, ".")