Maybe add `stopifnot(is.character(url), length(url) == 1)` while we're in here?