Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bookdown-demo Build Book fails unless tinytex is installed #685

Closed
ras44 opened this issue Mar 7, 2019 · 5 comments
Closed

bookdown-demo Build Book fails unless tinytex is installed #685

ras44 opened this issue Mar 7, 2019 · 5 comments
Milestone

Comments

@ras44
Copy link

ras44 commented Mar 7, 2019

Not sure if this would save someone else time, but it might be helpful to have something similar to the following in the getting started notes:

install.packages("tinytex")
library(tinytex)
tinytex::install_tinytex(force=TRUE)

In my case, building the book initially failed, but the discussion at rstudio/tinytex#102 hinted at the solution

@yihui yihui added this to the v0.10 milestone Mar 7, 2019
@yihui
Copy link
Member

yihui commented Mar 7, 2019

The tinytex package is a required dependency of bookdown, so it should be automatically installed when you install bookdown.

https://github.com/rstudio/bookdown/blob/master/DESCRIPTION#L60

@yihui yihui closed this as completed Mar 7, 2019
@ras44
Copy link
Author

ras44 commented Mar 7, 2019

Thanks for your quick response. Although the dependency means that the package is installed, I'm not sure if that ensures that the tinytex::install_tinytex(force=TRUE) command is run. Running this command is what got things to work for me at least.

@yihui
Copy link
Member

yihui commented Mar 7, 2019

As I said at rstudio/tinytex#102 (comment), TinyTeX is recommended but not required. You can use other LaTeX distributions.

It is also mentioned in the bookdown-demo project: https://github.com/rstudio/bookdown-demo/blob/master/index.Rmd#L29

@ras44
Copy link
Author

ras44 commented Mar 7, 2019

ok- thanks for your feedback!

@github-actions
Copy link

github-actions bot commented Nov 6, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants