R/media-guess.r

Defines functions guess_media

Documented in guess_media

#' Guess the media type of a path from its extension.
#'
#' DEPRECATED: please use `mime::guess_type` instead.
#'
#' @param x path to file
#' @keywords internal
#' @export
guess_media <- function(x) {
  .Deprecated("mime::guess_type")
  mime::guess_type(x, empty = NULL)
}

Try the httr package in your browser

Any scripts or data that you put into this service are public.

httr documentation built on Aug. 15, 2023, 9:08 a.m.