Closed Keabla closed 5 years ago
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 tinytex::install_tinytex()
(as indicated in the messages during installation)?
Thank you for replying. I did restart RStudio. This is what I get running the codes xfun::session_info('rmarkdown') R version 3.5.2 (2018-12-20) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200), RStudio 1.1.463
Locale:
LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
LC_MONETARY=English_United States.1252 LC_NUMERIC=C
LC_TIME=English_United States.1252
Package version:
base64enc_0.1.3 digest_0.6.18 evaluate_0.13 glue_1.3.0 graphics_3.5.2 grDevices_3.5.2
highr_0.7 htmltools_0.3.6 jsonlite_1.6 knitr_1.21 magrittr_1.5 markdown_0.9
methods_3.5.2 mime_0.6 Rcpp_1.0.0 rmarkdown_1.11 stats_3.5.2 stringi_1.3.1
stringr_1.4.0 tinytex_0.10 tools_3.5.2 utils_3.5.2 xfun_0.5 yaml_2.2.0
Pandoc version: 2.7
tinytex::tinytex_root() [1] "C:\Users\Martin Albaek\AppData\Roaming\TinyTeX"
By "restart RStudio", I mean close RStudio and open it again, instead of only restarting the R session within RStudio.
Does your Sys.getenv('PATH')
contain the path returned by tinytex::tinytex_root()
? What does (tinytex::tlmgr_path())
return?
Sorry by restart I meant close RStudio and open it again. This is what I get: (tinytex::tlmgr_path()) tlmgr path add [1] 127
Sys.getenv('PATH') [1] "C:\Program Files\R\R-3.5.2\bin\x64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Pandoc\;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\Users\Martin Albaek\Anaconda3;C:\Users\Martin Albaek\Anaconda3\Library\mingw-w64\bin;C:\Users\Martin Albaek\Anaconda3\Library\usr\bin;C:\Users\Martin Albaek\Anaconda3\Library\bin;C:\Users\Martin Albaek\Anaconda3\Scripts;C:\Users\Martin Albaek\AppData\Local\Microsoft\WindowsApps;%DASHLANE_DLL_DIR%;C:\Users\Martin Albaek\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\;C:\Users\Martin Albaek\AppData\Local\Pandoc\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\"
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') })() [1] "C:\Users\Martin Albaek\AppData\Roaming\TinyTeX\bin\win32;C:\Program Files\R\R-3.5.2\bin\x64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Pandoc\;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\Users\Martin Albaek\Anaconda3;C:\Users\Martin Albaek\Anaconda3\Library\mingw-w64\bin;C:\Users\Martin Albaek\Anaconda3\Library\usr\bin;C:\Users\Martin Albaek\Anaconda3\Library\bin;C:\Users\Martin Albaek\Anaconda3\Scripts;C:\Users\Martin Albaek\AppData\Local\Microsoft\WindowsApps;%DASHLANE_DLL_DIR%;C:\Users\Martin Albaek\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\;C:\Users\Martin Albaek\AppData\Local\Pandoc\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\"
p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'tlmgr.bat') p [1] "C:\Users\Martin Albaek\AppData\Roaming/TinyTeX/bin/win32/tlmgr.bat" file_test('-x', p) C:\Users\Martin Albaek\AppData\Roaming/TinyTeX/bin/win32/tlmgr.bat TRUE
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
> (function() {
+ tinytex:::tweak_path()
+ print(Sys.which('pdflatex'))
+ system2('pdflatex', '--version')
+ })()
pdflatex
""
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 PATH
(invalid paths in PATH
will be ignored).
Now I wonder why pdflatex
cannot be found:
p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe')
file.info(p)
> p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe')
> file.info(p)
size isdir mode mtime ctime atime exe
C:\\Users\\Martin Albaek\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe NA NA <NA> <NA> <NA> <NA> <NA>
So what are the files under that directory?
list.files(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32'))
> list.files(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32'))
[1] "eps2eps.exe" "fmtutil-sys.exe" "fmtutil-user.exe" "fmtutil.exe" "kpathsea630.dll" "kpseaccess.exe" "kpsereadlink.exe" "kpsestat.exe"
[9] "kpsewhich.exe" "mkocp.exe" "mkofm.exe" "mktexfmt.exe" "mktexlsr.exe" "mktexmf.exe" "mktexpk.exe" "mktextfm.exe"
[17] "mktexupd.exe" "msvcp140.dll" "msvcr100.dll" "pdf2dsc.exe" "pdfopt.exe" "ps2ascii.exe" "ps2pdf.exe" "ps2pdf12.exe"
[25] "ps2pdf13.exe" "ps2pdf14.exe" "ps2ps.exe" "ps2ps2.exe" "psv.exe" "runscript.dll" "runscript.exe" "runscript.tlu"
[33] "texhash.exe" "tlmgr-gui.exe" "tlmgr.bat" "updmap-sys.exe" "updmap-user.exe" "updmap.exe" "wrunscript.exe"
It appears your TinyTeX installation was incomplete for some reason. Could you retry tinytex::install_tinytex(TRUE)
?
I retryied, close R and reopened it. But when I run your code
p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe') file.info(p)
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 pdflatex.exe
was killed by your anti-virus software. I don't know. This is the first time I have heard such a weird case about TinyTeX.
The last resort would be tinytex:::install_prebuilt()
. If this doesn't work, I'm afraid there isn't anything else I could do...
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? pdflatex.exe
still doesn't exist?
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:
tinytex::install_tinytex()
Then closed RStudio and reopen it. tinytex:::is_tinytex()
was TRUE.
> xfun::session_info('rmarkdown')
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200), RStudio 1.1.463
Locale:
LC_COLLATE=Spanish_Costa Rica.1252 LC_CTYPE=Spanish_Costa Rica.1252
LC_MONETARY=Spanish_Costa Rica.1252 LC_NUMERIC=C
LC_TIME=Spanish_Costa Rica.1252
Package version:
base64enc_0.1.3 digest_0.6.18 evaluate_0.13 glue_1.3.0 graphics_3.5.2
grDevices_3.5.2 highr_0.7 htmltools_0.3.6 jsonlite_1.6 knitr_1.21
magrittr_1.5 markdown_0.9 methods_3.5.2 mime_0.6 Rcpp_1.0.0
rmarkdown_1.11 stats_3.5.2 stringi_1.3.1 stringr_1.4.0 tinytex_0.10
tools_3.5.2 utils_3.5.2 xfun_0.5 yaml_2.2.0
Pandoc version: 1.19.2.1
> Sys.getenv('PATH')
"C:\\Program Files\\R\\R-3.5.2\\bin\\x64;C:\\ProgramData\\Oracle\\Java\\javapath;c:\\Rtools\\bin;c:\\Rtools\\mingw_32\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\MySQL\\MySQL Utilities 1.6\\;C:\\Program Files\\Java\\jdk-9.0.1\\bin;C:\\Program Files\\Java\\jre-9.0.1\\bin;C:\\Program Files\\SourceGear\\Common\\DiffMerge\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Firebird\\Firebird_3_0;C:\\Program Files\\Git\\cmd;C:\\Users\\Henry Marin\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Henry Marin\\AppData\\Roaming\\TinyTeX\\bin\\win32"
See below, the path is not exactly the same. Sys.getenv('PATH')
returns \bin\win32
whereas > tinytex::tinytex_root()
does not. I don't know if this is important, though.
> tinytex::tinytex_root()
[1] "C:\\Users\\Henry Marin\\AppData\\Roaming\\TinyTeX"
These are the other command @Yihui asked for:
> (tinytex::tlmgr_path())
tlmgr path add
Use of uninitialized value in bitwise or (|) at C:\Users\HENRYM~1\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl line 1482.
[1] 0
> (function() { tinytex:::tweak_path(); Sys.getenv('PATH') })()
[1] "C:\\Users\\Henry Marin\\AppData\\Roaming\\TinyTeX\\bin\\win32;C:\\Program Files\\R\\R-3.5.2\\bin\\x64;C:\\ProgramData\\Oracle\\Java\\javapath;c:\\Rtools\\bin;c:\\Rtools\\mingw_32\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\MySQL\\MySQL Utilities 1.6\\;C:\\Program Files\\Java\\jdk-9.0.1\\bin;C:\\Program Files\\Java\\jre-9.0.1\\bin;C:\\Program Files\\SourceGear\\Common\\DiffMerge\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Firebird\\Firebird_3_0;C:\\Program Files\\Git\\cmd;C:\\Users\\Henry Marin\\AppData\\Local\\Microsoft\\WindowsApps"
> p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'tlmgr.bat')
> p
[1] "C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/tlmgr.bat"
> file_test('-x', p)
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/tlmgr.bat
TRUE
(function() {
tinytex:::tweak_path()
print(Sys.which('pdflatex'))
system2('pdflatex', '--version')
})()
pdflatex
""
> p = tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe')
> file.info(p)
size isdir mode
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe NA NA <NA>
mtime ctime
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe <NA> <NA>
atime exe
C:\\Users\\Henry Marin\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe <NA> <NA>
> list.files(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32'))
[1] "eps2eps.exe" "fmtutil-sys.exe" "fmtutil-user.exe" "fmtutil.exe"
[5] "kpathsea630.dll" "kpseaccess.exe" "kpsereadlink.exe" "kpsestat.exe"
[9] "kpsewhich.exe" "mkocp.exe" "mkofm.exe" "mktexfmt.exe"
[13] "mktexlsr.exe" "mktexmf.exe" "mktexpk.exe" "mktextfm.exe"
[17] "mktexupd.exe" "msvcp140.dll" "msvcr100.dll" "pdf2dsc.exe"
[21] "pdfopt.exe" "ps2ascii.exe" "ps2pdf.exe" "ps2pdf12.exe"
[25] "ps2pdf13.exe" "ps2pdf14.exe" "ps2ps.exe" "ps2ps2.exe"
[29] "psv.exe" "runscript.dll" "runscript.exe" "runscript.tlu"
[33] "texhash.exe" "tlmgr-gui.exe" "tlmgr.bat" "updmap-sys.exe"
[37] "updmap-user.exe" "updmap.exe" "wrunscript.exe"
I will also install the prebuild and report later.
Thanks.
@yihui here are the results that I get (sorry for the :
> file.info(tinytex:::win_app_dir('TinyTeX', 'bin', 'win32', 'pdflatex.exe'))
size isdir mode mtime ctime atime exe
>C:\\Users\\Martin Albaek\\AppData\\Roaming/TinyTeX/bin/win32/pdflatex.exe 1536 FALSE 777 2019-03-06 18:14:52 2019-03-06 18:14:52 2019-03-06 18:14:52 win32
@Keabla So it seems you have pdflatex.exe
now. Does it work for building R Markdown to PDF?
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 tinytex::install_prebuilt()
. Then I could compile PDFs with no problem.
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. For me it still does not work. Here is what I did after I unistalled tinytex and removed the package:
install.packages('tinytex') tinytex::install_tinytex()
closed R Studio
tinytex:::install_prebuilt()
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 Code
tab in the Examples
section: https://guides.github.com/features/mastering-markdown/ I have been editing almost every single reply you posted in this thread, and I really hope you could learn how to use three backticks by yourself :)
After you tinytex::install_prebuilt()
, what's the output of
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 tinytex::install_prebuild()
.
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'))
.
> 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
@dawidh15 Thank you! I think you are all set now (and I guess you are correct that the upstream TeX Live installer might be broken recently). I'm continuing to help @Keabla.
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.
@QQ910 https://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip doesn't work for me because the site mirror.ctan.org doesn't have an SSL certificate (I have confirmed it with the CTAN team). If you have problems with install_tinytex()
, please see https://github.com/yihui/tinytex/issues/103#issuecomment-470188040 above for the alternative way for installation.
tinytex:::install_prebuilt()
also solved my problem. thank you very much.
I would like to kindly bring it to your attention that the need to run
tinytex::install_tinytex
was not obvious, and I only found it because I tracked a google search to this page. I would have hoped this step would have been more prominently placed on the website.
I would have hoped this step would have been more prominently placed on the website.
Which website are you referring exactly ?
Currently ˋtinytex::install_tinytex()` is in the first chunk under R users setup on the documentation website https://yihui.name/tinytex/
I would have hoped this step would have been more prominently placed on the website.
Which website are you referring exactly ?
Currently ˋtinytex::install_tinytex()` is in the first chunk under R users setup on the documentation website https://yihui.name/tinytex/
OK, thanks. Apparently, I overlooked it. I didn't say it wasn't there; just that it would have been more prominent.
I would have hoped this step would have been more prominently placed on the website.
Which website are you referring exactly ?
Currently ˋtinytex::install_tinytex()` is in the first chunk under R users setup on the documentation website https://yihui.name/tinytex/
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 FAQs R package Hall of Pain 中文文档 Github repo Yihui Xie Edit this page Subscribe
@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
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 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!
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 notifications@github.com 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 https://github.com/yihui/tinytex/issues/103?email_source=notifications&email_token=ABHNQ4ICQS7CTZMYFI5FHNTPWK4M7A5CNFSM4G4CXI2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVZDSKA#issuecomment-494025000, 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 mftuchman@gmail.com 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 notifications@github.com 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 https://github.com/yihui/tinytex/issues/103?email_source=notifications&email_token=ABHNQ4ICQS7CTZMYFI5FHNTPWK4M7A5CNFSM4G4CXI2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVZDSKA#issuecomment-494025000, 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. 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 ! ☺️
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 < notifications@github.com> 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 ! ☺️
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yihui/tinytex/issues/103?email_source=notifications&email_token=ABHNQ4OLS4IDAGW4R6IJ7NDPWMKILA5CNFSM4G4CXI2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV2EHMY#issuecomment-494158771, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHNQ4IUUD7OPERPMMWQYGDPWMKILANCNFSM4G4CXI2A .
--
Michael Tuchman215-237-9555
I actually want to say: Why do we need tinytex::install_tinytex()
at all? It is not straightforward. For other R packages, we just run install.packages(packageaname)
.
@cowlumbus tinytex::install_tinytex()
installs TinyTeX, a LaTeX distribution (not an R package).
@yihui I mean, maybe you can have R automatically run tinytex::install_tinytex()
after install.packages('tinytex')
?
@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报错了。
@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.
@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
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 tinytex::install_tinytex()
after install.packages('tinytex')
. I cannot think of a scenario that only requires the tinytex pacakge, but not to run tinytex::install_tinytex()
. So don't be too pedantic.
@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! As you can see, I am new to latex things. I tried MikeTex first, but failed to get it work on my machine. Then I found out TinyTeX and it works like a charm.
The RStudio IDE will suggest you install TinyTeX in the future if no LaTeX installation is detected: https://github.com/rstudio/rstudio/pull/5490
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?