Skip to content

[R-pkg-devel] Package manual build problem: ">" not rendered correctly

4 messages · Duncan Murdoch, Rolf Turner, Noah Greifer

#
Hello,

I am using \Sexpr{} macros in my R package with render-time evaluation.
This means in my package source that I submit to CRAN, the package manual
must be pre-built and included in the tarball. I am able to build the PDF
manual using devtools::build_manual(), but in the manual that is produced,
greater-than signs (">") are replaced with upside-down question marks. See
the first page of the attached manual for reference. What can I do to have
this render correctly?

Running pdflatex --version in Terminal gives me the following:

pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020)
kpathsea version 6.3.2
[Irrelevant stuff removed]
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.02

I am on a Mac. I know very little about Latex (I don't use it for my
writing). Thank you!

Noah

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cobalt_manual.pdf
Type: application/pdf
Size: 71256 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20220225/3a9cac97/attachment.pdf>
#
On 25/02/2022 12:49 p.m., Noah Greifer wrote:
According to the embedded information, you didn't use pdf(la)tex to 
produce that PDF.  It says the "PDF Producer" was "macOS Version 12.0.1 
(Build 21A559) Quartz PDFContext."  I'd try using the standard tools to 
build the manual, and see if that is any different.  That is, in 
Terminal, run

R CMD Rd2pdf <path to your package>

Duncan Murdoch
#
On Fri, 25 Feb 2022 12:49:49 -0500
Noah Greifer <noah.greifer at gmail.com> wrote:
<SNIP>
<SNIP>

IMHO that is a flaw in your character. :-)

cheers,

Rolf Turner
#
Thank you for the help! I found "TinyTeX" which according to its developer
is a lightweight version of TeX Live for use by R users. I thought I had
installed it previously, but maybe not. After doing so, I was able to
render the manual correctly. Thank you for taking a look and helping me
solve this problem.

Noah

@Rolf We are all flawed in our own ways :) The only dark magic I have ever
cast has been getting formula numbers in Microsoft Word.
On Fri, Feb 25, 2022 at 4:43 PM Rolf Turner <r.turner at auckland.ac.nz> wrote: