Learn R Programming

colouR (version 0.1.1)

read_image_from_url: 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)

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".

Arguments

path

A character string representing the URL of the image file.