Re: [R] [Rd] How to link to vignette from .Rd file

2006-11-09 Thread Agner Fog
Thanks for the tip. Actually I found that I can just write vignette(vignettename) in a demo. I think that's the easiest way to link to a .pdf file. It works only if the .pdf file is built from a Sweave file. I thought that I could just put a .pdf file and an index.html in inst/doc/ but I get

Re: [R] [Rd] How to link to vignette from .Rd file

2006-11-09 Thread Duncan Murdoch
On 11/9/2006 6:37 AM, Agner Fog wrote: Thanks for the tip. Actually I found that I can just write vignette(vignettename) in a demo. I think that's the easiest way to link to a .pdf file. It works only if the .pdf file is built from a Sweave file. I thought that I could just put a .pdf

Re: [R] [Rd] How to link to vignette from .Rd file

2006-11-09 Thread Agner Fog
Duncan Murdoch wrote: Actually how you built the .pdf is irrelevant, but it does look for file with the same name and one of these extensions: Rnw rnw Snw snw Rtex rtex Stex stex So you could just create a zero length file with the same basename and one of those extensions, and it

Re: [R] [Rd] How to link to vignette from .Rd file

2006-11-09 Thread Duncan Murdoch
On 11/9/2006 1:15 PM, Agner Fog wrote: Duncan Murdoch wrote: Actually how you built the .pdf is irrelevant, but it does look for file with the same name and one of these extensions: Rnw rnw Snw snw Rtex rtex Stex stex So you could just create a zero length file with the same

Re: [R] [Rd] How to link to vignette from .Rd file

2006-11-08 Thread Antonio, Fabio Di Narzo
2006/11/8, Agner Fog [EMAIL PROTECTED]: Thanks for the tip. I had thought of using the demo facility for this but I didn't know how to check for the operating system. See help about '.Platform'. I.e., .Platform$OS.type can be useful. This is a clumsy solution, but better than nothing. I