I want to load an image into a .rmd file.
I am working on a university project where I have to hand in this .rmd file at the end. As a restriction, this file has to run out of the box, so unfortunately it is not an option to load the image from a given file path as I can't submit a folder containing the image or similar (and I don't want to upload it somewhere and access it via URL either).
I was looking for a way to serialize the image information and hard code it into the file but I couldn't find anything helpful related to that. So in short, I want to do the following:
- serialize image
- hard code serialized image as variable in .rmd
- deserialize hard coded variable and plot image data in .rmd
Is there a simple way to do this?