[R-pkg-devel] Encoding problems in Rd files when submitting package to CRAN

Michael Blum michael.blum at univ-grenoble-alpes.fr
Wed Mar 28 11:27:18 CEST 2018

Dear all

I recently submitted a new version of a package called apTreeshape to 
CRAN and my package did not pass the check because of the following error

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! Package inputenc Error: Unicode char ˆ (U+88)
(inputenc)                not set up for use with LaTeX
Many similar errors...
See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
* checking PDF version of manual without hyperrefs or index ... ERROR

It seems that the problem come from the Rd files. Rd files were not 
generated with roxygen2 because it is a package that has been developped 
w while ago.

In the DESCRIPTION file, I wrote
Encoding: latin1
but using
Encoding: UTF-8
does not solve the issue

I was able to reproduce the bug using R CMD check --as-cran

Michael Blum

More information about the R-package-devel mailing list