Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

install_* requires user to have pdftex if package has a vignette #173

Closed
garrettgman opened this Issue · 5 comments

4 participants

Garrett Grolemund Hadley Wickham Ben Bolker Winston Chang
Garrett Grolemund

This might be something you guys want to think about. When a person runs install_github (and maybe other install_*'s), devtools retrieves a copy of the package, and then R builds and installs it on the user's machine.

If the package has an Sweave vignette, R build will try to find a program to compile the vignette and then error out if the user doesn't have one.

I'm guessing that a lot of R users won't have latex installed and won't be able to figure out the error message, which may make it harder to use install_github and github.

Garrett

p.s. Also, I could be completely wrong about this :P

Garrett Grolemund

We should attempt to detect if pdftex is available, and if not, don't try and install vignettes. - Hadley

Hadley Wickham
Owner

Check for Sys.which("pdflatex")

Hadley Wickham
Owner

And pass --no-manual, --no-vignettes to build and check.

Ben Bolker

one quick thought: is specifying quick=TRUE a temporary workaround for this issue?

Winston Chang
Collaborator

@bbolker no, quick=TRUE presently doesn't affect vignette building. The vignettes are built during the build phase, not the install phase, and quick=TRUE only affects the install phase.

Winston Chang wch closed this in 48eb7b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.