FWIW: I find that running tinytex::install_tinytex() after step 2, and before step 3, works. I've tested this on several Windows 10 builds (10.0.17763). This is the case where:
bookdown and tinytex packages are already installed, install_tinytex() solves the problem. By filing an issue to this repo, I promise that
xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/tinytex').I understand that my issue may be closed if I don't fulfill my promises.
Thank you for the feedback !
Is this for a specific issue ?
Glad it works at the end. Not sure what happened because the two functions should be equivalent - reinstall_tinytex will call install_tinytext()
I'm developing a workshop for the Statistics department. They want senior honors papers to produce an e-book and optionally PDF. They are recommending bookdown as the package to enable that.
In any case, while developing/testing a protocol to share with students, I discovered my experience doesn't seem consistent with the documentation. So, I am providing this feedback because my replicable experience is that reinstall_tinytext and install_tinytext are not equivalent, in my case. Maybe it's of use. If not, s'all good.
The scenarios I'm using is as follows.
This suggest, to me, at least
Anyway, if this is not useful information for you, please feel free to close the issue.
Love bookdown/tidytext/R markdown, and more. Thanks for all the great work
From: Christophe Dervieux notifications@github.com
Sent: Wednesday, November 18, 2020 9:06 AM
To: yihui/tinytex tinytex@noreply.github.com
Cc: John Little john.little@duke.edu; Author author@noreply.github.com
Subject: Re: [yihui/tinytex] windows debugging - tinytex::install_tinytex() (#258)
Thank you for the feedback !
Is this for a specific issue ?
Glad it works at the end. Not sure what happened because the two functions should be equivalent - reinstall_tinytex will call install_tinytext()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/yihui/tinytex/issues/258*issuecomment-729699875__;Iw!!OToaGQ!7QgN6fYAgXMkbA3sx3xHScVhUzlWaMWHPpghmHyiej6PFiheFY9LlH8fj7Gsb0p_63I$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABBIEKR77ZULMJ7Q4N4WFFLSQPIH5ANCNFSM4TVBGCRQ__;!!OToaGQ!7QgN6fYAgXMkbA3sx3xHScVhUzlWaMWHPpghmHyiej6PFiheFY9LlH8fj7GsFYFhrCw$.
Thanks a lot for the detailed steps !
As you are started from a fresh environment, I believe you are encountering this error when you are running reinstall_tinytex(): "TinyTeX does not seem to be installed." right ?
The path you followed is not a common one. Bookdown does have a dependency on the tinytex R package but not on the TinyTeX distribution. If you want to build a pdf_book, you would need to have a LateX distribution installed, TinyTeX or any other. As you have none, that is why install_tinytex() is working for you.
This kind of information in this the Get Started session of the documentation: https://bookdown.org/yihui/bookdown/get-started.html that points toward how to get TinyTeX distribution https://yihui.org/tinytex/. The link to the book is on the page you consulted.
More recently we redocument this in the Rmarkdown cookbook: https://bookdown.org/yihui/rmarkdown-cookbook/install-latex.html
Hope this resources will be useful for your workshop.
We will try to improve the feedbacks and docs for people following the same path as you, going through bookdown.org
That's very helpful feedback. Thank you, Christopher.
I'm sure you're right. I cannot disagree: my protocol is not so common.
For some selfish reasons, I started at this "get started" page: https://bookdown.org/home/about/, rather than here: https://bookdown.org/yihui/bookdown/get-started.html. That alone may be the key to all this. I guess there are several get started pages, and all for good reasons -- I'm sure -- because, basically, I am also developing a "get started" option for my students.
So, in my "get started" protocol, I'll include the note about TinyTex. Maybe your TinyTex note would also want to live in the bookdown-about "get started" page ( https://bookdown.org/home/about ). I'm sure you've thought more deeply about this than I have.
I guess all of this makes me wonder how many people are as confused, as I am. OMG for nuances of this reality _depencency on the R tinytex package is not equivalent to the TinyTex distribution when install_tinytex()_
Thanks for working it through. Best of luck.
From: Christophe Dervieux notifications@github.com
Sent: Wednesday, November 18, 2020 10:19 AM
To: yihui/tinytex tinytex@noreply.github.com
Cc: John Little john.little@duke.edu; Author author@noreply.github.com
Subject: Re: [yihui/tinytex] windows debugging - tinytex::install_tinytex() (#258)
Thanks a lot for the detailed steps !
As you are started from a fresh environment, I believe you are encountering this error when you are running reinstall_tinytex(): "TinyTeX does not seem to be installed." right ?
The path you followed is not a common one. Bookdown does have a dependency on the tinytex R package but not on the TinyTeX distribution. If you want to build a pdf_book, you would need to have a LateX distribution installed, TinyTeX or any other. As you have none, that is why install_tinytex() is working for you.
This kind of information in this the Get Started session of the documentation: https://bookdown.org/yihui/bookdown/get-started.htmlhttps://urldefense.com/v3/__https://bookdown.org/yihui/bookdown/get-started.html__;!!OToaGQ!4m9OwtYJ-garkXRU9iywiTTwOiirjKZ6dmr570fxFiJUzMCSbHshpAPCmNvmt96js3Y$ that points toward how to get TinyTeX distribution https://yihui.org/tinytex/https://urldefense.com/v3/__https://yihui.org/tinytex/__;!!OToaGQ!4m9OwtYJ-garkXRU9iywiTTwOiirjKZ6dmr570fxFiJUzMCSbHshpAPCmNvm1nUNF08$. The link to the book is on the page you consulted.
More recently we redocument this in the Rmarkdown cookbook: https://bookdown.org/yihui/rmarkdown-cookbook/install-latex.htmlhttps://urldefense.com/v3/__https://bookdown.org/yihui/rmarkdown-cookbook/install-latex.html__;!!OToaGQ!4m9OwtYJ-garkXRU9iywiTTwOiirjKZ6dmr570fxFiJUzMCSbHshpAPCmNvmAedJ30Q$
Hope this resources will be useful for your workshop.
We will try to improve the feedbacks and docs for people following the same path as you, going through bookdown.org
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/yihui/tinytex/issues/258*issuecomment-729749101__;Iw!!OToaGQ!4m9OwtYJ-garkXRU9iywiTTwOiirjKZ6dmr570fxFiJUzMCSbHshpAPCmNvmCKHB_A0$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABBIEKW5SNYYOQCL3CT74N3SQPQX7ANCNFSM4TVBGCRQ__;!!OToaGQ!4m9OwtYJ-garkXRU9iywiTTwOiirjKZ6dmr570fxFiJUzMCSbHshpAPCmNvmD_sR7OQ$.
Hey @cderv
Before I go. Sorry for piling on. Can you confirm that Mac users also need to install_tinytex() ?
I'm not a Mac person but sometimes have to advise. I wouldn't want to force them to change a LaTex installation unnecessarily.
Again, Thanks for sharing your knowledge.
You don't have to use TinyTeX distribution to work with R markdown or bookdown or else.
You need a LateX distribution to render to PDF. The tinytex R 📦 will work with other distribution too: https://yihui.org/tinytex/r/#other-latex-distributions
tinytex::install_tinytex()
is only required if someone wants to use the TinyTeX distribution. One main advantage for R users is that it works well with Rmarkdown ecosystem, and also it will install prebuilt binary that have been tested againt some examples.
Does it clarify ?
I appreciate your response. It is clear, yes: there are multiple
distributions; TinyTeX works best with R Markdown.
Many thanks.
On Wed, Nov 18, 2020 at 12:19 PM Christophe Dervieux <
[email protected]> wrote:
You don't have to use TinyTeX distribution to work with R markdown or
bookdown or else.
You need a LateX distribution to render to PDF. The tinytex R 📦 will
work with other distribution too:
https://yihui.org/tinytex/r/#other-latex-distributions
https://urldefense.com/v3/__https://yihui.org/tinytex/r/*other-latex-distributions__;Iw!!OToaGQ!4Tf9v0cpT3gRO9tema_SiPBSBvZi2BsFYSQcvmGE_WuGBNlsPBSb8kMbY4W6s0gxssc$tinytex::install_tinytex()
is only required if someone wants to use the TinyTeX distribution. One
main advantage for R users is that it works well with Rmarkdown ecosystem,
and also it will install prebuilt binary that have been tested againt some
examples.Does it clarify ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/yihui/tinytex/issues/258*issuecomment-729825990__;Iw!!OToaGQ!4Tf9v0cpT3gRO9tema_SiPBSBvZi2BsFYSQcvmGE_WuGBNlsPBSb8kMbY4W6zHzgruk$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABBIEKV6TXFD3W2INN7XWY3SQP6YDANCNFSM4TVBGCRQ__;!!OToaGQ!4Tf9v0cpT3gRO9tema_SiPBSBvZi2BsFYSQcvmGE_WuGBNlsPBSb8kMbY4W65wviCEo$
.
--
John.Little@Duke.edu
Data Science Librarian
Center for Data & Visualization Sciences https://library.duke.edu/data/
Duke University Libraries
https://JohnLittle.info/ https://johnlittle.info/
(919) 627-7795
I've added a note on the page https://bookdown.org/home/about/ about the requirement of LaTeX. Thanks!
Most helpful comment
I appreciate your response. It is clear, yes: there are multiple
distributions; TinyTeX works best with R Markdown.
Many thanks.
On Wed, Nov 18, 2020 at 12:19 PM Christophe Dervieux <
[email protected]> wrote:
--
John.Little@Duke.edu
Data Science Librarian
Center for Data & Visualization Sciences https://library.duke.edu/data/
Duke University Libraries
https://JohnLittle.info/ https://johnlittle.info/
(919) 627-7795