şunun yansıması https://git.sr.ht/~hrbrmstr/splashr
25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
15 satır
380 B
15 satır
380 B
check_or_report_status <- function(res) {
|
|
|
|
if (httr::status_code(res) >= 400) {
|
|
msg <- httr::content(res, as="text", encoding="UTF-8")
|
|
msg <- jsonlite::fromJSON(msg)
|
|
httr::stop_for_status(
|
|
x = res,
|
|
task = sprintf(
|
|
fmt = "render due to %s",
|
|
paste0(c(msg[["type"]], msg[["description"]], msg[["info"]]), collapse="; ")
|
|
)
|
|
)
|
|
}
|
|
|
|
}
|
|
|