Tried to install tinytex multiple ways.
tinytex::install_tinytex() and tinytex:::install_prebuilt()
I even tried to install from source zip.
The only feedback I get is:
Warning in install.packages :
cannot open compressed file 'TinyTeX/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
Hi @klaasb01,
Maybe I have missed the point of your question, but does this simple console command work to install the tinytex binary package from CRAN?
install.packages("tinytex")
On Windows 11, I'm getting version 0.36
If not, then your internet connection maybe blocking access to CRAN?
These functions from tinytex R package should download and install the TinyTeX distribution
Here it means you tried to install TinyTeX.zip using install.packages(). This function is for R package, and TinyTeX.zip is not an R package. Use tinytex::install_tinytex() directly.
This is because TeX Live is not install as TinyTeX is not install. tlmgr does not exist yet so you can't install a CTAN package.
Yes I did the install.packages('tinytex) so I could get the tinytex::install_tinytex() functions.
It look like the download gets cut off @ 82MB and it should be 99.8MB.
This is what I get.
install.packages('tinytex')
Installing package into ‘C:/Users/ca10063026/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/tinytex_0.36.zip'
Content type 'application/zip' length 129072 bytes (126 KB)
downloaded 126 KB
package ‘tinytex’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\ca10063026\AppData\Local\Temp\Rtmp4AgLyu\downloaded_packages
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
In addition: Warning message:
In extract(pkg, exdir = path.expand(target)) :
error 1 in extracting from zip file
ok So I tried a different approach remotes::install_github('yihui/tinytex') and that does not work either.
I might have to go and open an issue on github.
remotes::install_github('yihui/tinytex')
Downloading GitHub repo yihui/tinytex@HEAD
Running R CMD build...
checking for file 'C:\Users\xxxxxxx\AppData\Local\Temp\RtmpIZ5Pjr\remotes49c850a1599b\yihui-tinytex-1725fa9/DESCRIPTION' ... OK
preparing 'tinytex':
checking DESCRIPTION meta-information ... OK
checking for LF line-endings in source and make files and shell scripts
checking for empty or unneeded directories
building 'tinytex_0.36.2.tar.gz'
Installing package into ‘C:/Users/10063026/OneDrive - BD/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
installing source package 'tinytex' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'tinytex'
finding HTML links ... done
check_installed html
copy_tinytex html
install_tinytex html
is_tinytex html
latexmk html
parse_install html
parse_packages html
r_texmf html
tl_pkgs html
tl_sizes html
tlmgr html
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path