download_image: Download an image related to the class

View source: R/download_functions.R

download_imageR Documentation

Download an image related to the class

Description

This function downloads and image related to the class from the class GitHub repository.

Usage

download_image(file_name, force_download = FALSE, mode = "wb")

Arguments

file_name

The name the image to download.

force_download

Will download and overwrite an existing image if the downloaded image has the same name.

mode

A character indicating the mode with which to write the file. Useful values are "w", "wb" (binary), "a" (append) and "ab". Not used for methods "wget" and "curl". See also ‘Details’, notably about using "wb" for Windows. See download.file() mode argument.

Examples

 # Download an image from the class GitHub repository
 ## Not run: download_image("valentin.png")


emeyers/SDS230 documentation built on Dec. 7, 2024, 5:11 p.m.