This is about LaTeX install and not about R.  My problem was multiple 
installations of LaTeX: first using MacTex, then newer version using texlive.  
I had also tried to install then uninstall using MacPorts.  It seems MacPorts 
uninstall was not clean.  I had to manually delete several sym links.  MacTex 
install inserts /etc/paths.d/TeX, which has the path /Library/TeX/texbin.  So 
to get TeX to use the more recent texlive install, PATH should be updated so 
that texlive comes before /Library/TeX/texbin.

With above corrections, my problem is solved.

This might help some other users:
1.  Check tex installation.  Multiple installs using different methods (MacTex, 
MacPorts, texlive using perl) can interfere with one another.
2.  Ensure that, in PATH variable, desired tex installation comes first.
3.  Verify that different tex family commands use the same tex installation.  
For example, tlmgr - - version, tex - - version, should both point to the same 
installation.   

> On Feb 2, 2025, at 11:31 AM, Naresh Gurbuxani <naresh_gurbux...@hotmail.com> 
> wrote:
> 
> This did not help.  I removed inconsolata.sty, then reinstalled inconsolata.
> 
> bash-3.2$ sudo tlmgr install -reinstall inconsolata
> Password:
> Sorry, try again.
> Password:
> tlmgr: package repository 
> https://ctan.tinycomputers.io/tex-archive/systems/texlive/tlnet (verified)
> [1/1, ??:??/??:??] reinstall: inconsolata [468k]
> running mktexlsr ...
> done running mktexlsr.
> running updmap-sys ...
> done running updmap-sys.
> tlmgr: package log updated: /usr/local/texlive/2024/texmf-var/web2c/tlmgr.log
> tlmgr: command log updated: 
> /usr/local/texlive/2024/texmf-var/web2c/tlmgr-commands.log
> bash-3.2$ tlmgr info inconsolata
> package:     inconsolata
> category:    Package
> shortdesc:   A monospaced font, with support files for use with TeX
> longdesc:    Inconsolata is a monospaced font designed by Raph Levien. This 
> package contains the font (in both Adobe Type 1 and OpenType formats) in 
> regular and bold weights, with additional glyphs and options to control 
> slashed zero, upright quotes and a shapelier lower-case L, plus metric files 
> for use with TeX, and LaTeX font definition and other relevant files.
> installed:   Yes
> revision:    54512
> sizes:       doc: 597k, run: 1201k
> relocatable: No
> cat-version: 1.121
> cat-license: ofl apache2 lppl1.3
> cat-topics:  font font-mono font-type1 font-otf font-t1enc
> cat-contact-home: http://levien.com/type/myfonts/inconsolata.html
> collection:  collection-fontsextra
> 
> On running R CMD check, below is the bottom of the messages:
> 
> * checking PDF version of manual ... WARNING
> LaTeX errors when creating PDF version.
> This typically indicates Rd problems.
> LaTeX errors found:
> ! LaTeX Error: File `inconsolata.sty' not found.
> 
> Type X to quit or <RETURN> to proceed,
> or enter new name. (Default extension: sty)
> 
> ! Emergency stop.
> <read *> 
>         l.326 ^^M
>         !  ==> Fatal error occurred, no output PDF file produced!
> * checking PDF version of manual without index ... OK
> * DONE
> Status: 1 WARNING
> 
> 
>> On Feb 2, 2025, at 10:13 AM, Marc Girondot 
>> <marc.giron...@universite-paris-saclay.fr> wrote:
>> 
>> Hi Naresh
>> 
>> I have nearly the same configuration as yours:
>> I have this file installed (you must activate locate database to use locate):
>> locate inconsolata.sty
>> /usr/local/texlive/2024/texmf-dist/tex/latex/inconsolata/inconsolata.sty
>> 
>> Have you the file ?
>> 
>> If you have it, a solution could be to remove it and reinstall.
>> 
>> Marc
>> 
>> Le 02/02/2025 à 15:58, Naresh Gurbuxani a écrit :
>>> R CMD check <package> gives me below message at the end. There does not 
>>> seem to be a problem with my TeX installation. Is it possible that R CMD 
>>> check is not looking in the correct location? How can this problem be fixed?
>>> 
>>> Thanks,
>>> Naresh
>>> 
>>> * checking PDF version of manual ... WARNING
>>> LaTeX errors when creating PDF version.
>>> This typically indicates Rd problems.
>>> LaTeX errors found:
>>> ! LaTeX Error: File `inconsolata.sty' not found.
>>> 
>>> Type X to quit or <RETURN> to proceed,
>>> or enter new name. (Default extension: sty)
>>> 
>>> ! Emergency stop.
>>> <read *> 
>>> 
>>> l.326 ^^M
>>> 
>>> ! ==> Fatal error occurred, no output PDF file produced!
>>> * checking PDF version of manual without index ... OK
>>> * DONE
>>> 
>>> My Mac has the latest version of TeX installed from texlive. Below are top 
>>> few lines from running tlmgr conf
>>> 
>>> =========================== version information ==========================
>>> tlmgr revision 73493 (2025-01-17 23:28:29 +0100)
>>> tlmgr using installation: /usr/local/texlive/2024
>>> TeX Live (https://tug.org/texlive) version 2024
>>> ==================== executables found by searching PATH =================
>>> PATH: 
>>> /usr/local/texlive/2024/bin/universal-darwin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/texlive/2024/bin/universal-darwin
>>> dvipdfmx: /usr/local/texlive/2024/bin/universal-darwin/dvipdfmx
>>> dvips: /usr/local/texlive/2024/bin/universal-darwin/dvips
>>> fmtutil: /usr/local/texlive/2024/bin/universal-darwin/fmtutil
>>> kpsewhich: /usr/local/texlive/2024/bin/universal-darwin/kpsewhich
>>> luatex: /usr/local/texlive/2024/bin/universal-darwin/luatex
>>> mktexpk: /usr/local/texlive/2024/bin/universal-darwin/mktexpk
>>> pdftex: /usr/local/texlive/2024/bin/universal-darwin/pdftex
>>> tex: /usr/local/texlive/2024/bin/universal-darwin/tex
>>> tlmgr: /usr/local/texlive/2024/bin/universal-darwin/tlmgr
>>> updmap: /usr/local/texlive/2024/bin/universal-darwin/updmap
>>> xetex: /usr/local/texlive/2024/bin/universal-darwin/xetex
>>> 
>>> On the command line, I tried updating incosolata package
>>> 
>>> bash-3.2$ sudo tlmgr install inconsolata
>>> Password:
>>> tlmgr: package repository 
>>> https://ctan.tinycomputers.io/tex-archive/systems/texlive/tlnet (verified)
>>> tlmgr install: package already present: inconsolata
>>> 
>>> bash-3.2$ sudo tlmgr update inconsolata
>>> tlmgr: package repository 
>>> https://ctan.tinycomputers.io/tex-archive/systems/texlive/tlnet (verified)
>>> tlmgr: saving backups to /usr/local/texlive/2024/tlpkg/backups
>>> tlmgr: no updates available
>>> ______________________________________________
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide 
>>> https://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>> 
>> 
>> Marc Girondot, Pr
>> Laboratoire Ecologie, Société, Evolution
>> Equipe de Processus Ecologiques et Pressions Anthropiques
>> CNRS, AgroParisTech et Université Paris-Saclay, UMR 8079
>> 91190 Gif-sur-Yvette, France
>> Tel: +33 (0)1.69.15.72.30 Mobile: +33 (0)6.20.18.22.16
>> e-mail: marc.giron...@universite-paris-saclay.fr
>> marc.giron...@gmail.com
>> Web: http://hebergement.universite-paris-saclay.fr/marcgirondot/
> 

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to