Skip to content

[R-pkg-devel] Error occurring only when I submit to CRAN

3 messages · Elysée Aristide, Ivan Krylov, Serguei Sokol

#
Greetings,

I submitted my package CDatanet <https://github.com/ahoundetoungan/CDatanet>.
Before that I checked (as CRAN) locally on Linux and Windows and I did not
get any error. I only get a note about my address mail (which is normal).
However, when I submitted the package to CRAN, I got a warning and an error
with the Window server:  <http://goog_371023383/>
https://win-builder.r-project.org/incoming_pretest/CDatanet_0.0.1_20210208_174258/Windows/00check.log


* 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+2010)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
* checking PDF version of manual without hyperrefs or index ... ERROR
* checking for detritus in the temp directory ... OK
* DONE

Status: 1 ERROR, 1 WARNING, 1 NOTE


while the Debian server is ok:  <http://goog_371023385/>
https://win-builder.r-project.org/incoming_pretest/CDatanet_0.0.1_20210208_174258/Debian/00check.log

How can I fix this given that I am not able to reproduce the error locally?

Thank you very much for your help.

*-------------------------------------*

*Aristide Elys?e HOUNDETOUNGAN*
*Ph.D. Candidate in Economics at Universit? Laval*
*Personal website : *www.ahoundetoungan.com
#
On Fri, 12 Feb 2021 02:45:02 -0500
Elys?e Aristide <ariel92and at gmail.com> wrote:

            
Your LaTeX setup seems to have better Unicode support than the one
installed on CRAN machines. Try using tools::showNonASCIIfile on all
your *.Rd files to find the one containing a Unicode hyphen, then
replacing it with ASCII hyphen-minus.

I'm afraid that I'm finding your use of License: field a bit confusing.
"GPL-3 + file LICENSE" typically means that the package license
restricts a base license, the restrictions being provided in the
LICENSE file. In your case, LICENSE seems to contain the text
of Apache-2.0 license. Does it mean that some parts of the package are
GPL-3, while others are covered by the Apache license? If you want to
indicate that either license applies to the whole package, I think that
"GPL-3 | file LICENSE" would be a better fit. Apologies if you have
already clarified this particular usage with someone more knowledgeable
than me.
#
Le 12/02/2021 ? 08:45, Elys?e Aristide a ?crit?:
This is a frequent source of errors. Somewhere in your manual there is a 
unicode 2010 hyphen "?" ( https://www.compart.com/fr/unicode/U+2010 ) 
instead of plain ASCII hyphen "-". They look pretty similar, don't they? 
May be you did some copy/paste from e.g. a pdf file and thus got this 
character in your texts.

Supposing that it is not so critical for your documentation to have 
U+2010 char, you can replace it by a hyphen from your keyboard. To spot 
its exact place you can try |tools::showNonASCIIfile().|

|Best,
Serguei.|

|
|