Skip to content
Prev 9989 / 21312 Next

[Bioc-devel] incomplete vignette on macosx

Hi Renan,

I'm not familiar with Rhtml vignettes and I couldn't get to the
bottom of this but it seems to me that the calls to dev.new()
in your plotting functions somehow get in the way and confuse
the knit engine. If I remove them the problem goes away i.e. the
images get generated and embedded in the HTML vignette.

All these calls to dev.new() are placed inside if statements like this:

   if(!grepl("pdf|postscript|cairo_|png|tiff|jpeg|bmp",
       names(dev.cur()),perl=TRUE)){
       dev.new(width=8, height=2*n)
   }

so make sure that the if condition evaluates to FALSE during vignette
generation (names(dev.cur()) should be "null device" in the context of
vignette generation).

I have to admit that I don't understand why we would see this problem
only on our Mac builders morelia and oaxaca. Is the knit engine using
Pandoc for processing Rhtml documents? Could the problem be related
to different versions of Pandoc on the different build machines?
For the record, we have version 1.16.0.2 on morelia, malbec1, malbec2,
version 1.17.0.2 on oaxaca, and version 1.17.2 on tokay1 and tokay2.
Not sure that's so helpful, sorry.

Hoping that someone could provide some insight on this...

Cheers,
H.
On 10/25/2016 08:52 AM, Renan Valieris wrote:

  
    
Message-ID: <4def6f70-eadc-d596-4e9c-dab421b44a7e@fredhutch.org>
In-Reply-To: <3683_1477410572_580F7F0B_3683_12007_1_0267ecd730e1e5ccb11717cbe0b13568@cipe.accamargo.org.br>