From xie at yihui.name  Mon Jun  4 15:55:22 2012
From: xie at yihui.name (Yihui Xie)
Date: Mon, 4 Jun 2012 09:55:22 -0400
Subject: [Rd] Requests for vignette clarification (re: Writing R
	Extensions)
In-Reply-To: <CAErODj8uTv3khu1ebMphMPBdGhezQ58LonpBL+Q5Xeiq=_Oc2A@mail.gmail.com>
References: <CAErODj90VWY19eWVtuVeLL8JpN0QxrKvWA+N5CQg-LcdALVsWQ@mail.gmail.com>
	<4FCBB4E1.2020707@gmail.com>
	<CAErODj8uTv3khu1ebMphMPBdGhezQ58LonpBL+Q5Xeiq=_Oc2A@mail.gmail.com>
Message-ID: <CANROs4cNsMazb62kbZg1m7_=FNbYM8u7Lqgggq5gC-oPpSTJUw@mail.gmail.com>

You should export to Rnw directly from LyX instead of copying the Rnw
document in the LyX temp dir. The former one is a clean TeX document,
and the latter one will mangle all filenames.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Mon, Jun 4, 2012 at 9:29 AM, Paul Johnson <pauljohn32 at gmail.com> wrote:
>
>
> I got to the bottom of the problem that made me ask. I had a package
> that failed build check. I wrote the vignette in LyX and when I add a
> bibliography file in LyX, it adds a full path, not just {rockchalk},
> in the Rnw file.
>
> \bibliography{0_home_pauljohn_SVN_rgroup_trunk_rockchalk_rockchalk_vignettes_rockchalk}
>
> LyX does that because it runs its builds in a temporary folder.
>
> When it is like that, the vignette builds for me, but it does not
> survive the package check because the check ?won't go looking on the
> long path.
>
> pj
>
>
> --
> Paul E. Johnson
> Professor, Political Science ? ?Assoc. Director
> 1541 Lilac Lane, Room 504 ? ? Center for Research Methods
> University of Kansas ? ? ? ? ? ? ? University of Kansas
> http://pj.freefaculty.org ? ? ? ? ? ?http://quant.ku.edu
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Requests for vignette clarification (re: Writing R Extensions)
Yihui Xie