Nothing
#' Check a URL file size
#'
#' Call [httr::HEAD()] and return the number of bytes in the file to be
#' downloaded.
#'
#' @param url The URL of the file to query.
#' @return The size of a file to be downloaded.
#' @importFrom httr HEAD headers
#' @importFrom fs as_fs_bytes
#' @export
url_file_size <- function(url) {
file_head <- httr::HEAD(url = url)
file_length <- as.numeric(httr::headers(file_head)[["content-length"]])
fs::as_fs_bytes(file_length)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.