I am experimenting with putting vignettes in a vignettes/ directory as
suggested in the new R release news. If I understand correctly, it is now
suggested that the vignette source (.Stex in my case) should be in the
vignettes/ directory and the pdf should be put in the inst/doc/ directory, for
the case when it is not being built by R CMD build. I am getting an error
(R-2.14.0):
(cd inst/doc ; R CMD Sweave --pdf ../../vignettes/Guide.Stex ) Writing to
file Guide.tex Processing code chunks with options ...
...
You can now run (pdf)latex on 'Guide.tex'
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, :
Running 'texi2dvi' on '../../vignettes/Guide.tex' failed.
Messages:
/usr/bin/texi2dvi: cannot read ./../../vignettes/Guide.tex, skipping.
Calls: <Anonymous> -> <Anonymous> -> texi2dvi Execution halted
I can work around this by copying the Stex to inst/doc first, but I think that
Sweave -pdf should be able to find the .tex file it just wrote.
Also, I would appreciate suggestions about whether one should try to build the
pdf in the vignettes/ directory and then move it to inst/doc, or build the pdf
in inst/doc. I suppose this all gets looked after by R CMD build if I have
BuildVignettes: true, but otherwise I think I have to do it manually by
something like the above, so I am trying to understand the preferred strategy.
Paul
====================================================================================
La version française suit le texte anglais.
------------------------------------------------------------------------------------
This email may contain privileged and/or confidential information, and the Bank
of
Canada does not waive any related rights. Any distribution, use, or copying of
this
email or the information it contains by other than the intended recipient is
unauthorized. If you received this email in error please delete it immediately
from
your system and notify the sender promptly by email that you have done so.
------------------------------------------------------------------------------------
Le présent courriel peut contenir de l'information privilégiée ou
confidentielle.
La Banque du Canada ne renonce pas aux droits qui s'y rapportent. Toute
diffusion,
utilisation ou copie de ce courriel ou des renseignements qu'il contient par une
personne autre que le ou les destinataires désignés est interdite. Si vous
recevez
ce courriel par erreur, veuillez le supprimer immédiatement et envoyer sans
délai Ã
l'expéditeur un message électronique pour l'aviser que vous avez éliminé de
votre
ordinateur toute copie du courriel reçu.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel