Skip to content

build_vignette fails quietly if no knitr available #736

Closed

Description

@barryrowlingson

I have a package with a knitr-built .Rnw vignette, pulled it to a new machine with the latest R and devtools. Build the vignette:

 > build_vignettes("./colloc/")
 NULL

Nothing happens. Hmm. Try command line:

 Error in loadVignetteBuilder(pkgdir, TRUE) : 
   vignette builder 'knitr' not found

Installing knitr fixes the build_vignettes call.

Could build_vignettes produce an informative message as R CMD build does?

Activity

  1. hadley commented on Apr 28, 2015

    @hadley
    Member

    I just call tools::buildVignettes() so I'm a bit mystified as to why it doesn't complain.

    What do you think about automatically installing the vignette builder package if needed?

  2. lock commented on Sep 18, 2018

    @lock

    This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

  3. locked and limited conversation to collaborators on Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions