load.dir: Load all images in a directory

load.dirR Documentation

Load all images in a directory

Description

Load all images in a directory and return them as an image list.

Usage

load.dir(path, pattern = NULL, quiet = FALSE)

Arguments

path

directory to load from

pattern

optional: file pattern (ex. *jpg). Default NULL, in which case we look for file extensions png,jpeg,jpg,tif,bmp.

quiet

if TRUE, loading errors are quiet. If FALSE, they are displayed. Default FALSE

Value

an image list

Author(s)

Simon Barthelme

Examples


path <- system.file(package="imager") %>% paste0("/extdata")
load.dir(path)

imager documentation built on May 29, 2024, 1:38 a.m.