question regarding embedding images in vignette when creating bioconductor package
1
1
Entering edit mode
KB ▴ 50
@k-8495
Last seen 15 months ago
United States

Hello, 

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:

  1. Image has to be in the same folder as the .Rnw file
  2. 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.
  3. 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 ?

Thanks,

K

 

vignette • 1.3k views
ADD COMMENT
2
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 3.2 years ago
United States

Option 1. BTW, this question belongs on the bioc-devel mailing list

ADD COMMENT
0
Entering edit mode

Thanks for the quick response. Will submit such questions to the bioc-devel mailing list henceforth.

ADD REPLY

Login before adding your answer.

Traffic: 908 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6