[R-pkg-devel] latex related error in generating pdf manual

Chris Lloyd C@L|oyd @end|ng |rom mb@@edu
Wed Mar 23 04:39:33 CET 2022


I have had a programmer developing my package from the raw  r-code and other instructions I provided. He is using roxygen2 to create the documentation (I have to say that I do not see the point of this at all). He also creates a consolidated manual of all the functions in the package.

After this project is completed, I will hope to use everything he did as a template for future packages. He is working on Unix but I am in Windows. I suspect he is using Unix specific stuff in his build. As a consequence, I am getting the errors below.

> system("R CMD check --as-cran exact.n_0.1.0.tar.gz")

About 50 lines all OK....

* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
* checking PDF version of manual without hyperrefs or index ... ERROR
Re-running with no redirection of stdout/stderr.
Hmm ... looks like a package
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  :
  pdflatex is not available
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  :
  pdflatex is not available
Error in running tools::texi2pdf()
You may want to clean up by 'rm -Rf C:/Users/User/AppData/Local/Temp/RtmpS8O9f0/Rd2pdf527c554c1c51'
* checking for detritus in the temp directory ... OK
* DONE

Status: 1 ERROR, 1 WARNING, 1 NOTE

I did not use the tarball that he supplied but generated my own (So I generated my own tarball (system("R CMD build exact.n")  without any error.

I must admit that, looking at his code, I cannot see anywhere where the pdf manual is created and for this reason am unable to start trouble shooting. I cannot even find a package or function called texi2dvi which is generating the error.

Any help appreciated.


Chris J. Lloyd
Professor of Business Statistics
Melbourne Business School
200 Leicester Street, Carlton, Victoria 3053 Australia
T:  +61 3 9349 8228
E:  c.lloyd using mbs.edu<mailto:c.lloyd using mbs.edu>  |  www.mbs.edu<http://www.mbs.edu/>

"The most damaging thing you learned in school wasn't something you learned in any specific class. It was learning to get good grades". Paul Graham<http://paulgraham.com/lesson.html>

----------------------------------------------------------------------
Notice from Melbourne Business School Ltd

The information contained in this e-mail is confidential...{{dropped:15}}



More information about the R-package-devel mailing list