read_image_from_url {colouR}R 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".


[Package colouR version 0.1.1 Index]