[R-pkg-devel] '! LaTeX Error: Option clash for package xcolor' on linux-based builds
Adam Price
price0416 @ending from gm@il@com
Thu Dec 20 17:33:45 CET 2018
Hi,
I am currently having an issue getting past a warning that's occurring on
linux based builds for my vignette. The warning is: "! LaTeX Error: Option
clash for package xcolor."
The check results are here:
https://cran.r-project.org/web/checks/check_results_DEVis.html
I currently cannot reproduce this issue on my side, and travis-ci checks do
not seem to produce this warning. I can only see it currently when
submitting an update to my package and failing the CRAN auto-checks.
I have recently changed from PDF vignette to html-based, and am not sure
why LaTeX packages would even be loading in this case. I have attempted to
correct for it based on this post (
https://github.com/haozhu233/kableExtra/issues/274) which claims the issue
is a conflict between kableExtra and xcolor.
Some relevant sections of code from the vignette might include:
"
vignette: |
%\VignetteIndexEntry{DEVis}
%\usepackage[utf8]{inputenc}
%\usepackage[table]{xcolor}
%\VignetteEngine{knitr::knitr}
---
```{r loadData, echo = F, eval = TRUE}
#load("../data/exampleData.Rda")
knitr::opts_knit$set(root.dir = '../vignettes/')
knitr::opts_chunk$set(fig.path='figure/graphics-',
cache.path='cache/graphics-',
fig.align='center',
external=TRUE,
echo=TRUE,
warning=FALSE,
fig.pos='H'
)
a4width<- 8.3
a4height<- 11.7
library(kableExtra)
library(rmarkdown)
library(knitr)
options(knitr.table.format = "html")
options(kableExtra.latex.load_packages = FALSE)
"
The full package code can be found here: https://github.com/price0416/DEvis
I would appreciate any insight anyone can offer into this issue, as I
cannot update my package until I get to the bottom of this! Thanks very
much in advance!
Best,
-Adam
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list