read_image_from_url: read_image_from_url

View source: R/read_image_from_url.R

read_image_from_urlR Documentation

read_image_from_url

Description

Read either a PNG or JPG file from a URL. This function reads an image file (PNG or JPG) from a URL and returns the image data.

Usage

read_image_from_url(path)

Arguments

path

A character string representing the URL of the image file.

Value

An object containing the image data. If the image is a JPG, the object will be of class "array". If the image is a PNG, the object will be of class "matrix".


colouR documentation built on Sept. 26, 2023, 5:11 p.m.