tests/encoding.R

library(magick)
filename = enc2native('b\u00EAta.png')
image_write(, filename)
stopifnot(file.exists(filename))
image_read(filename)
unlink(filename)

Try the magick package in your browser

Any scripts or data that you put into this service are public.

magick documentation built on Oct. 22, 2023, 5:06 p.m.