Skip to content

[R-pkg-devel] published CRAN check results give error for only r-oldrel-macos-arm64

2 messages · Tony Wilkes, Ivan Krylov

#
Dear all,

My R package has yesterday been accepted by CRAN. I'm super happy about this, of course.
But when I look at the package's CRAN check results (see https://cran.r-project.org/web/checks/check_results_tinycodet.html), I see that r-oldrel-macos-arm64 has latex errors.
I find it very odd that the package runs fine on all OS, except this particular one. And I don't see why latex errors would be OS-specific. (Btw: I actually checked my R package personally on Mac OS before giving to CRAN, and there were no errors then.)

As stated, my package is published, so it's not the end of the world. But I don't want certain people to be left out, so I would prefer to fix this particular error also. The latex errors are not very enlightening.

Can anyone please explain why these latex errors are there, and how I could fix them in the future?

Thank you in advance.

Kind regards,

Tony.
#
On Fri, 13 Oct 2023 09:11:20 +0000
Tony Wilkes <tony_a_wilkes at outlook.com> wrote:

            
The difference is that the r-oldrel-windows-x86_64 checks are running
R-4.2.3, but r-oldrel-macos-arm64 are running R-4.2.0. I can reproduce
the issue with R-4.2.0, and it's in the s_regex help page. Here's the
relevant difference in the intermediate *.tex files:

 The \LinkA{\Rpercent{}s-\Rpercent{}}{.Rpcent.s.Rdash..Rpcent.} and \LinkA{\Rpercent{}s/\Rpercent{}}{.Rpcent.s/.Rpcent.} operators,
-as well as the string detection operators (\LinkA{\Rpercent{}s\textbraceleft{\textbraceright{}\textbraceright{}\Rpercent{}}{.Rpcent.s.Rlbrace..Rrbrace..Rpcent.}, \LinkA{\Rpercent{}s!\textbraceleft{\textbraceright{}\textbraceright{}\Rpercent{}}{.Rpcent.s!.Rlbrace..Rrbrace..Rpcent.}),
+as well as the string detection operators (\LinkA{\Rpercent{}s\{\}\Rpercent{}}{.Rpcent.s.Rlbrace..Rrbrace..Rpcent.}, \LinkA{\Rpercent{}s!\{\}\Rpercent{}}{.Rpcent.s!.Rlbrace..Rrbrace..Rpcent.}),
 perform pattern matching for some purpose,
 where the pattern is given on the right hand side. \\{}
 When a character vector or string is given on the right hand side,

This seems to correspond to R-devel revision 82224 made on 2022-04-20
that fixed the use of {} inside \code{\link{}}.

If you'd like a clean PDF manual build on R-4.2.0 and older, it may
help to give a different \alias to the %s{}% help page and use that
inside \link.