From murdoch.duncan at gmail.com  Fri Aug 22 13:04:57 2014
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 22 Aug 2014 07:04:57 -0400
Subject: [Rd] markdown vignette with the vignette command
In-Reply-To: <CAHm4+KC4yDmHbTMHm7gOSTUzAoqfut4vJ0ZRbOVEeJw5RBm1cw@mail.gmail.com>
References: <CAHm4+KC4yDmHbTMHm7gOSTUzAoqfut4vJ0ZRbOVEeJw5RBm1cw@mail.gmail.com>
Message-ID: <53F723D9.8010707@gmail.com>

On 22/08/2014, 6:09 AM, Leo Lahti wrote:
> Dear list,
> 
> we have a markdown vignette for our package in vignette/vignette.md
> 
> This is not visible from within R with the vignette(package = "mypackage")
> command.
> 
> I assume the reason is that the vignette function only shows PDF vignettes.
> Is there any way to circumvent this and display markdown vignettes directly
> from within R?
> 
> I tried to seek the answer from R archives and search engines but could not
> find the solution so far.
> 

If you are using a current version of R, it should just work.  For example,

vignette("knitr-markdown")

works for me when knitr is attached.  If knitr was not attached, I'd
have to list it in the pkg argument of the vignette call.

Duncan Murdoch



[Rd] markdown vignette with the vignette command
Duncan Murdoch