R/ketnipz_r.R

Defines functions ketnipz_r

Documented in ketnipz_r

#' Gerar Kentnipz aleatório
#'
#' @return Não retorna nada. Apenas plota o Ketnipz
#' @export
#'

ketnipz_r <- function(){
  tmp <- tempfile(fileext = ".jpeg", ".mp4")
  utils::download.file(
    "https://www.instagram.com/ketnipz/",
    tmp,
    quiet = TRUE
  )
  tmp %>%
    jpeg::readJPEG() %>%
    grDevices::as.raster() %>%
    graphics::plot()

}
lucassxs/KetnipzR documentation built on Jan. 14, 2022, 10:17 a.m.