I am working on creating a bioconductor package. I have an sweave vignette file where I need to embed a pre-created image.
I would like to know if its okay to place the image in the "vignette" folder, or do I need to place the image in "inst/extdata" and link it in the document from there ?
I have looked online a lot, and also in Sweave manual and FAQ - and as far as I understand, there are 3 ways of embedding the image in .Rnw file:
- Image has to be in the same folder as the .Rnw file
- We need to provide absolute path of location of image (eg: /Users/PackageName/inst/extdata/image.png). This is not an option when creating a BioC package.
- Put image in a folder (say "pictures") inside "vignette" and provide that path (eg: pictures/image.png)
If I use solution #1 or solution #3, I am able to embed the image without any issues. My question is, is it okay to do this ?