I tried this where the star * represents all images but did not work
path = system.file ("C:/Users/Bilal/Desktop/d","*.jpg", package = "OpenImageR")
head(path)
Error in readImage(path) : the path to an image is invalid or the image does not exist
im<- readImage(path)