Add quick test for the custom HTTP user agent

This commit is contained in:
Greg Lin 2023-01-09 18:27:47 -06:00
commit 16d7f91ad0

View file

@ -101,3 +101,8 @@ if (getRversion() >= "3.5.0" && getRversion() < "4.0.0") {
} else if (getRversion() >= "4.0.0") {
stopifnot(has_pcre2 && !has_pcre1)
}
# Check that the custom HTTP user agent was configured
if (!grepl(sprintf("^R/%s", getRversion()), getOption("HTTPUserAgent"))) {
stop("unexpected HTTPUserAgent")
}