From murdoch.duncan at gmail.com  Fri May 13 18:34:40 2016
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 13 May 2016 12:34:40 -0400
Subject: [Rd] LaTeX errors new with R 3.3.0
In-Reply-To: <c00c115e-e221-d6db-84ba-73853f9e3f0f@prodsyse.com>
References: <c00c115e-e221-d6db-84ba-73853f9e3f0f@prodsyse.com>
Message-ID: <57360220.4090704@gmail.com>

On 13/05/2016 10:41 AM, Spencer Graves wrote:
> Hello:
>
>
>         I could use help understanding an error reported by "R CMD build
> sos" that's new with R 3.3.0:
>
>
> Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  :
>     Running 'texi2dvi' on 'sos.tex' failed.
> LaTeX errors:
> ! Undefined control sequence.
> l.1 \Sconcordance
>                    {concordance:sos.tex:sos.Rnw:%
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> Calls:  -> texi2pdf -> texi2dvi
>
>
> [http://r-forge.r-project.org/R/?group_id=235&log=build_src&pkg=sos&flavor=patched]

That might mean that latex isn't finding Sweave.sty, which is in 
RHOME/share/texmf/tex/latex, or more likely it is finding a bad version 
somewhere else.

But in your case I think it's because you're telling latex to use 
RJournal.sty instead of Sweave.sty, and never defining \Sconcordance.

You can avoid the need for it by setting the Sweave option 
"concordance=FALSE".



        The above was on R-Forge.  When I run "R CMD build sos" with R
3.3.0 on my MacBook Pro running OS X 10.11.4, I get a different LaTeX
error, also in texi2dvi:


Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  :
    Running 'texi2dvi' on 'sos.tex' failed.
BibTeX errors:
The top-level auxiliary file: sos.aux
The style file: abbrvnat.bst
I found no \bibdata command---while reading file sos.aux
Calls: <Anonymous> -> texi2pdf -> texi2dvi
Execution halted



Don't know about that one.

Duncan Murdoch



[Rd] LaTeX errors new with R 3.3.0
Duncan Murdoch