Back
I think for conversion, you can see the image_convert function from the magick package. Check the package description and the 'Converting formats' section from the package vignette.
library(magick)my_image <- image_read("image.png")my_svg <- image_convert(my_image, format="svg")image_write(my_svg, "image.svg")dir()[1] "image.png" "image.svg"
library(magick)
my_image <- image_read("image.png")
my_svg <- image_convert(my_image, format="svg")
image_write(my_svg, "image.svg")
dir()
[1] "image.png" "image.svg"
If you are a beginner and want to know more about R then do check out the following R programming tutorial.
31k questions
32.8k answers
501 comments
693 users