-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
RStudio does not detect TeX installation #103
Comments
Update on May 20, 2019: to users who came to this page by searching for the RStudio error message "No TeX installation detected", you may try to install TinyTeX: https://yihui.name/tinytex/#for-r-users Please provide xfun::session_info('rmarkdown')
tinytex::tinytex_root() Did you restart RStudio after |
Thank you for replying. I did restart RStudio. This is what I get running the codes Locale: Package version: Pandoc version: 2.7 tinytex::tinytex_root() |
By "restart RStudio", I mean close RStudio and open it again, instead of only restarting the R session within RStudio. Does your |
Sorry by restart I meant close RStudio and open it again. This is what I get:
|
That is weird. What's the output of the code below? (function() { tinytex:::tweak_path(); Sys.getenv('PATH') })()
p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'tlmgr.bat')
p
file_test('-x', p) |
(function() { tinytex:::tweak_path(); Sys.getenv('PATH') })()
|
Thanks! I think we are getting closer to the problem, but I still need more info: (function() {
tinytex:::tweak_path()
print(Sys.which('pdflatex'))
system2('pdflatex', '--version')
})() |
Thank you for your time and dedication! Here there is the result
|
Also, I do not understand why in PATH it still appears "MikTex 2.9" at the bottom of it, as I deleted all the files with that time, could that be a reason for this problem? |
If MiKTeX has been deleted, it doesn't matter if it is still in Now I wonder why p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe')
file.info(p) |
|
So what are the files under that directory? list.files(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32')) |
|
It appears your TinyTeX installation was incomplete for some reason. Could you retry |
I retryied, close R and reopened it. But when I run your code p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe') I get the same results as before, and markdown to pdf still does not work |
I just tried to install TinyTeX on Windows and couldn't reproduce the problem. Perhaps The last resort would be |
Is there anything that I should do after running tinytex:::install_prebuilt(), except closing and reopening R Studio, to make markdown to pdf work? |
No. So it sounds like after you restart RStudio, it still doesn't work? file.info(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe')) |
Hello. I'm having the same issue. Actually, I was teaching my students how to use rmarkdown using tinytex. Some of then had no problem, but many found the same error message reported by @Keabla. Of those who didn't have this issue, many installed tinytex weeks ago. I also installed tinytex some weeks ago in another windows computer, and had no issue at all. In my PC I had MikTex installed. I uninstalled Miktex, and then restart the PC. Afterwards I installed tinytex:
Then closed RStudio and reopen it.
See below, the path is not exactly the same.
These are the other command @yihui asked for:
I will also install the prebuild and report later. Thanks. |
@yihui here are the results that I get (sorry for the :
|
@Keabla So it seems you have BTW, please take a minute to read the Markdown syntax: https://guides.github.com/features/mastering-markdown/ You should use code blocks to show verbatim content, such as R code and its output. |
Hello. I've uninstalled Tex Live and tinytex. Then, reinstalled tinytex v0.9, and used the command If you need detailed info, please tell me how to help. Thanks |
@dawidh15 Good to know. Thank you! |
@yihui Sorry for the format, I am new to GitHub so I still need to learn how to do it.
closed R Studio
But it is still not working, did I do anything different from you @dawidh15 that might be the reason why it is not working? |
@Keabla Click the After you file.info(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe')) ? |
@Keabla The only thing different I did was installing the previous version of tinytex (v0.9). Also, after installing tinytex , I went straight to As I mentioned earlier, some students went into this problem (all of then using Windows 10). They just had a new version of tinytex installed, whereas the students with a previous version could actually run the PDF. So, it looks to me that this problem might be related to some recent change in tinytex (one to two weeks back... maybe). BTW this is the output of > file.info(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe'))
size isdir mode
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe 1536 FALSE 777
mtime
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe 2019-03-07 09:09:11
ctime
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe 2019-03-07 09:09:11
atime
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe 2019-03-07 09:09:11
exe
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe win32 |
Hi Yihui, I have the issue to use tinytex::install_tinytex() function here, it show I could not download from "http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip" , because of the security. However, if I change to "https" , it shows the ULR is ok. Do you have the solution for this? Thanks. |
OK, thanks. Apparently, I overlooked it. I didn't say it wasn't there; just that it would have been more prominent. |
Can you kindly give me the complete link to the 'R Users Setup?'. Right now, the message I get from your post is "It's there, dummy, so why didn't you find it?". And yet, I didn't find it, so perhaps communication should be clearer. The current menu on the left hand side of the page does not mention the word 'Setup'. In my view, this is where it should be mentioned for easiest navigation. Here's the menu. In my view, it would be more helpful if the link to the chunk you describe were placed in this menu, at the top level of the website. TinyTeX: A lightweight and easy-to-maintain LaTeX distribution Home |
@MichaelTuchman It is in the first section on https://yihui.name/tinytex/ with the section title "For R Users", after an initial introduction/overview (which consists of three paragraphs and a logo). The "complete" link is (still the same page): https://yihui.name/tinytex/#for-r-users
I'm sorry you felt that way, but I'm sure @cderv didn't mean the message. He is one of the kindest people in the R community I have ever met. I appreciate your suggestion of making Anyway, there is a menu item "Edit this page", on which you can click to make a concrete suggestion of improving the documentation. Thank you! |
OK - I see it - I was suggesting that it be included on the left side menu,
but I generally don't like to edit people's pages unannounced.
…On Mon, May 20, 2019 at 11:01 AM Yihui Xie ***@***.***> wrote:
@MichaelTuchman <https://github.com/MichaelTuchman> It is in the first
section on https://yihui.name/tinytex/ with the section title "For R
Users", after an initial introduction/overview (which consists of three
paragraphs and a logo).
[image: image]
<https://user-images.githubusercontent.com/163582/58030699-9ad08600-7ae4-11e9-82ba-53281ef7f43c.png>
The "complete" link is (still the same page):
https://yihui.name/tinytex/#for-r-users
Right now, the message I get from your post is "It's there, dummy, so why
didn't you find it?".
I'm sorry you felt that way, but I'm sure @cderv
<https://github.com/cderv> didn't mean the message. He is one of the
kindest people in the R community I have ever met.
I appreciate your suggestion of making ˋtinytex::install_tinytex()` more
prominent on that page, but I don't know how. It appeared quite early on
the page. Do you mean that we should move it all the way up to the very
first paragraph? That doesn't feel natural to me. I mean a project
typically needs an introduction/overview in the beginning, then we talk
about specifics (like installation, etc).
Anyway, there is a menu item "Edit this page", on which you can click to
make a concrete suggestion of improving the documentation. Thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#103>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABHNQ4L3RJ6MPRTYJZ7X363PWK4M7ANCNFSM4G4CXI2A>
.
--
*Michael Tuchman215-237-9555*
|
Anyway, I had been able to get everything installed. Now, my remaining
issue is dealing with a missing font called 'Inconsolata'
I will research existing threads on that. Sorry about that - sometimes
when looking in a hurry, it's hard to see something that's not right in
front of me. Like looking for items in the fridge.
On Mon, May 20, 2019 at 11:31 AM Michael Tuchman <[email protected]>
wrote:
… OK - I see it - I was suggesting that it be included on the left side
menu, but I generally don't like to edit people's pages unannounced.
On Mon, May 20, 2019 at 11:01 AM Yihui Xie ***@***.***>
wrote:
> @MichaelTuchman <https://github.com/MichaelTuchman> It is in the first
> section on https://yihui.name/tinytex/ with the section title "For R
> Users", after an initial introduction/overview (which consists of three
> paragraphs and a logo).
>
> [image: image]
> <https://user-images.githubusercontent.com/163582/58030699-9ad08600-7ae4-11e9-82ba-53281ef7f43c.png>
>
> The "complete" link is (still the same page):
> https://yihui.name/tinytex/#for-r-users
>
> Right now, the message I get from your post is "It's there, dummy, so why
> didn't you find it?".
>
> I'm sorry you felt that way, but I'm sure @cderv
> <https://github.com/cderv> didn't mean the message. He is one of the
> kindest people in the R community I have ever met.
>
> I appreciate your suggestion of making ˋtinytex::install_tinytex()` more
> prominent on that page, but I don't know how. It appeared quite early on
> the page. Do you mean that we should move it all the way up to the very
> first paragraph? That doesn't feel natural to me. I mean a project
> typically needs an introduction/overview in the beginning, then we talk
> about specifics (like installation, etc).
>
> Anyway, there is a menu item "Edit this page", on which you can click to
> make a concrete suggestion of improving the documentation. Thank you!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#103>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABHNQ4L3RJ6MPRTYJZ7X363PWK4M7ANCNFSM4G4CXI2A>
> .
>
--
*Michael Tuchman215-237-9555*
--
*Michael Tuchman215-237-9555*
|
@MichaelTuchman I am deeply sorry if you misundersood me and that you feel like you describe. As @yihui explain (Thanks!), it was far from my intention. I just wanted to point to you the doc website if you had not seen it. I wasn't sure you were talking about this website. Glad everything is ok now ! |
To be honest, I should have given myself time to patiently work things
out. You were clear; I was just perhaps being a bit too reactive since I
was embarrassed that I did not see what was right in front of my nose.
…On Mon, May 20, 2019 at 5:32 PM Christophe Dervieux < ***@***.***> wrote:
@MichaelTuchman <https://github.com/MichaelTuchman> I am deeply sorry if
you misundersood me and that you feel like you describe. As @yihui
<https://github.com/yihui> explain (Thanks!), it was far from my
intention. I just wanted to point to you the doc website if you had not
seen it. I wasn't sure you were talking about this website.
I'll be less concise in my answers in the future to be more clear about my
intention. Thanks for the feedback.
Glad everything is ok now !
--
*Michael Tuchman215-237-9555*
|
I actually want to say: Why do we need |
@cowlumbus |
@yihui I mean, maybe you can have R automatically run |
@cowlumbus That is not a trivial decision for me to make for users. Users may hate it when one software package installs other software packages secretly. However, it could be a good idea to pop up a dialog box asking users whether they'd like to install TinyTeX. For now, it is only mentioned in the RStudio error message: https://github.com/rstudio/rstudio/pull/3979/files |
@yihui 你好,上面的Tinytex安装没问题,pdflatex.exe文件也有,但是生成pdf报错了。 |
|
@myfollowers Your problem seems to be a different one. Please file a new issue instead of replying to this thread infinitely. This thread is about installing LaTeX/TinyTeX. You have successfully installed it. The only reason I haven't closed this issue is that I haven't heard back from @Keabla, and I don't know if the problem has been solved. |
I understand that it is not a good thing that one software package installs other software packages secretly. However, here we have a different scenario. Our goal is to use TinyTeX. The tinytex R package is just the midman. We always need to run |
@cowlumbus You can use other LaTeX distributions with the R package tinytex: https://yihui.name/tinytex/r/#other-latex-distributions TinyTeX is not your only choice. |
@yihui I see. Thanks for the open-minded feature of tinytex - open to support other latex distributions! |
The RStudio IDE will suggest you install TinyTeX in the future if no LaTeX installation is detected: rstudio/rstudio#5490 |
tinytex:::install_prebuilt() helps for me |
at the end works on a windows machine without the powershell crap. We all love you @yihui Thanks |
We're mid-semester, and one of my students (who has been rendering Quarto documents fine until now) just had the "no TeX installation detected" error pop up. After trying the usual |
@AmeliaMN That's really odd... I can't think of a reason why |
@AmeliaMN @yihui I had the same problem. When I tried to use add_link_dir_dir: destination /usr/local/bin not writable, no links from /Users/*/Library/TinyTeX/bin/universal-darwin. |
@tsquall121 The internal function |
Hmm. |
I am working with R, and Rmarkdown works for Html and Word documents, but I have issues with translating to pdf document.
I installed the required packages and installed as well Tiny Tex as the website indicates. However, even though it says "To compile an R Markdown document to PDF, there is nothing else you have to know", so presume that you don't need to download further Tex files, I get the following error running the demo markdown file:
Error: Failed to compile Test.tex.
In addition: Warning message:
In system2(..., stdout = FALSE, stderr = FALSE) : '"pdflatex"' not found
Execution halted
No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform:
Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup
(NOTE: Be sure to download the Complete rather than Basic installation)
Mac OS X: TexLive 2013 (Full) - http://tug.org/mactex/
(NOTE: Download with Safari rather than Chrome strongly recommended)
Linux: Use system package manager
Could anyone please help me?
The text was updated successfully, but these errors were encountered: