Skip to content
Prev 9546 / 12125 Next

[R-pkg-devel] URL syntax causes R CMD build failure - a fix

Thanks Uwe. I think you may have the reason, esp. if the url is output as LaTex
formatted text to the intermediate files.

 > Where is it in your package and what is the R CMD check output?

The issue was a failure to build the nlsr-devdoc.Rmd vignette. Unfortunately, the
messages were as below (indented). The package passed in May and earlier, and
failure occurred when pandoc updated recently on some platforms, so there is some
change in the toolchain that triggered this. While pandoc is a wonderful tool, its
message output can be very unhelpful. I've had difficulties outside of R converting
LaTex to epub for some of my historical novels. In those cases I've also seen apparent
success with "bits left out" which does upset the readers when the story has gaps.
I've never resolved the "why?", but have managed to work around, sometimes by simply
adding a vertical space (i.e., line ending), or otherwise rearranging text. It would
be nice to know the reason, but as with the present issue, the reward is not worth
the effort.

I've also seen awkwardness with currency symbols, though that may be my own lack of
detailed knowledge with LaTex. I need multiple currencies in some stories, and end
up editing with Sigil. I anticipate that some R users with vignettes that have
several currencies might want to check output.

Whether or not the url syntax that caused the present trouble is valid or not, the
percentage signs are likely worth avoiding if possible.

Thanks,

JN
On 2023-09-03 10:29, Uwe Ligges wrote: