
Write images and templates to files
write_stim(
stimuli,
dir = ".",
names = NULL,
format = "png",
...,
overwrite = wm_opts("overwrite")
)
list of stimuli
Directory to save to
A vector of stimulus names or NULL to use names from the stimuli list
output format such as "png", "jpeg", "gif"; is overridden if names end in .png, .jpg, or .gif
other arguments to pass to magick::image_write, such as quality (for jpegs)
whether to overwrite existing files (TRUE/FALSE) or "ask" (only in interactive mode)
list of saved paths
Stimulus creating functions
animate()
,
as_stimlist()
,
blank()
,
new_stimlist()
,
new_stim()
,
read_img()
,
read_stim()
,
read_tem()
# NOT RUN {
# write demo stim as jpegs to directory ./test_faces
demo_stim() |>
write_stim("test_faces", format = "jpg")
# }
Run the code above in your browser using DataLab