[Bioc-devel] BiocStyle not acknowledging fig.wide=TRUE in knitr

Aaron Lun alun at wehi.edu.au
Fri Sep 15 09:23:09 CEST 2017

Dear list,

I'm playing around with the BiocStyle aesthetics for my csaw user's guide, and it looks pretty good in general. However, setting fig.wide=TRUE doesn't seem to be respected by knitr during compilation. To give an example:

%%% Latex code start %%%


<<style-knitr, eval=TRUE, echo=FALSE, results="asis">>=




%% also: \bioctitle{Title used for both header and title page}

%% or... \title{Title used for both header and title page}

\author{Aaron Lun}
















<<testfig, fig.wide=TRUE>>=

plot(1, 1)



%%% End %%%

Running this with "R CMD Sweave --engine=knitr::knitr --pdf <filename>" gives me a TeX file. But setting "fig.wide=FALSE" in the testfig chunk and re-Sweaving gives me the exact same TeX file.

I would have expected something to manifest differently when I ask for a figure to be wide. in this case, it seems like it never becomes wide, regardless of how much I ask. Am I missing something?



P.S. Running on BiocStyle 2.5.37.

	[[alternative HTML version deleted]]

More information about the Bioc-devel mailing list