rstudio / tinytex

A lightweight, cross-platform, portable, and easy-to-maintain LaTeX distribution based on TeX Live
https://yihui.org/tinytex/
Other
985 stars 116 forks source link

Fail to install Caption package in Rstudio (Windows 10) #257

Closed CorentinWicht closed 3 years ago

CorentinWicht commented 3 years ago

Dear Yihui,

I would like to adjust the caption above my tables and figures in a rmarkdown document using the "\captionsetup" function but I am having a hard time trying to install the Caption package using the following command:

tinytex::tlmgr_install("caption")

Here is the error I get:

tlmgr install caption
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4
TLPDB::_install_data: unsupported container format xz for https://mirror.koddos.net/CTAN/systems/texlive/tlnet/archive/caption.tar.xz
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://mirror.koddos.net/CTAN/systems/texlive/tlnet (not verified: unknown)
[1/1, ??:??/??:??] install: caption [30k]
tlmgr.pl: package log updated: C:/Users/wicht/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr update --self
tlmgr install caption
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4
TLPDB::_install_data: unsupported container format xz for https://mirror.koddos.net/CTAN/systems/texlive/tlnet/archive/caption.tar.xz
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://mirror.koddos.net/CTAN/systems/texlive/tlnet (not verified: unknown)
[1/1, ??:??/??:??] install: caption [30k]
tlmgr.pl: package log updated: C:/Users/wicht/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log

Then, we I am trying to Knit my document to .pdf I get:

Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
xz (XZ Utils) 5.2.4
liblzma 5.2.4
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://mirror.koddos.net/CTAN/systems/texlive/tlnet (not verified: unknown)
[1/1, ??:??/??:??] install: caption [30k]
TLPDB::_install_data: unsupported container format xz for https://mirror.koddos.net/CTAN/systems/texlive/tlnet/archive/caption.tar.xz
tlmgr.pl: package log updated: C:/Users/wicht/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr update --self
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
GNU tar 1.11.8 + 2.2(WIN32)
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
xz (XZ Utils) 5.2.4
liblzma 5.2.4
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr.pl: package repository https://mirror.koddos.net/CTAN/systems/texlive/tlnet (not verified: unknown)
[1/1, ??:??/??:??] install: caption [30k]
TLPDB::_install_data: unsupported container format xz for https://mirror.koddos.net/CTAN/systems/texlive/tlnet/archive/caption.tar.xz
tlmgr.pl: package log updated: C:/Users/wicht/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
! LaTeX Error: File `caption.sty' not found.

! Emergency stop.

Here is the sessionInfo as requested:

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363), RStudio 1.3.959

Locale:
  LC_COLLATE=French_Switzerland.1252  LC_CTYPE=French_Switzerland.1252    LC_MONETARY=French_Switzerland.1252
  LC_NUMERIC=C                        LC_TIME=French_Switzerland.1252    

Package version:
  graphics_4.0.2  grDevices_4.0.2 stats_4.0.2     tinytex_0.27.1  tools_4.0.2     utils_4.0.2     xfun_0.19    

Many thanks for your help and your great work,

Corentin


By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

cderv commented 3 years ago

I am on windows 10 and I don't have any issue with installing caption

> tinytex::tlmgr_install("caption")
tlmgr install caption
tlmgr.pl: package repository http://ctan.mirrors.hoobly.com/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: caption [31k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/chris/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log

You have a lot of No such file or directory - I wonder if your installation of TinyTeX is correct.

You can check that it is correctly found with tinytex::tinytex_root(). And that it contains roughly all the folders. I have this:

> fs::dir_tree(tinytex::tinytex_root(), recurse = FALSE)
C:\Users\chris\AppData\Roaming\TinyTeX
+-- bin
+-- install-tl
+-- install-tl-windows.bat
+-- LICENSE.CTAN
+-- LICENSE.TL
+-- release-texlive.txt
+-- texmf-config
+-- texmf-dist
+-- texmf-local
+-- texmf-var
+-- texmf.cnf
+-- texmfcnf.lua
+-- tl-tray-menu.exe
\-- tlpkg

Easiest way to fix would be to strat fresh also to see if this happens with last version. Would you be willing to reinstall TinyTeX ? Using update.packages("tinytex") and then using tinytex::reinstall_tinytex() (hoping the function would work...) ?

Hope it helps.

CorentinWicht commented 3 years ago

Dear Mr. Dervieux,

many thanks for your prompt reply.

As you suggested I ran the command fs::dir_tree(tinytex::tinytex_root(), recurse = FALSE) and I have the same folder architecture as you do:

C:\Users\wicht\AppData\Roaming\TinyTeX
+-- bin
+-- install-tl
+-- install-tl-windows.bat
+-- LICENSE.CTAN
+-- LICENSE.TL
+-- release-texlive.txt
+-- texmf-config
+-- texmf-dist
+-- texmf-local
+-- texmf-var
+-- texmf.cnf
+-- texmfcnf.lua
+-- tl-tray-menu.exe
\-- tlpkg

While running the command tinytex::reinstall_tinytex(), I again got:

Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4
Use of uninitialized value in bitwise or (|) at C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl line 1523.
essai de l'URL 'https://yihui.org/tinytex/TinyTeX-1.zip'
Content type 'application/octet-stream' length 99790862 bytes (95.2 MB)
downloaded 95.2 MB

Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
tlmgr install colortbl environ makecell multirow pdflscape tabu threeparttable threeparttablex trimspaces ulem varwidth wrapfig
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4

C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB::from_file could not initialize from: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: Maybe the repository setting should be changed.
C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: More info: https://tug.org/texlive/acquire.html
tlmgr update --self
tlmgr install colortbl environ makecell multirow pdflscape tabu threeparttable threeparttablex trimspaces ulem varwidth wrapfig
Use of uninitialized value $ver in scalar chomp at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 205.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Use of uninitialized value $ver in substitution (s///) at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 206.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up tar with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
GNU tar 1.11.8 + 2.2(WIN32)
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up curl with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
curl 7.66.0 (i386-pc-win32) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 libssh2/1.9.0
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI libz
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up wget with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
GNU Wget 1.20.1 built on mingw32.

-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls 
-ntlm +opie -psl +ssl/gnutls 

Wgetrc: 
    C:/usr/anothermsys/local/etc/wgetrc (system)
Compile: 
    gcc -std=gnu11 -DHAVE_CONFIG_H 
    -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" 
    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib 
    -I/usr/local/include -DNDEBUG -static 
Link: 
    gcc -std=gnu11 -DNDEBUG -static /usr/local/lib/libgnutls.a -lz 
    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a 
    /usr/local/lib/libgmp.a -lcrypt32 -lz -lws2_32 ftp-opie.o 
    mswindows.o gnutls.o ../lib/libgnu.a -lws2_32 -lws2_32 -lws2_32 
    -lws2_32 /usr/local/lib/libiconv.a -lws2_32 

Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4

C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB::from_file could not initialize from: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: Maybe the repository setting should be changed.
C:\Users\wicht\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: More info: https://tug.org/texlive/acquire.html

I decided to completely remove my TinyTex package and reinstall it from CRAN, but it didn't change anything. I still get the same error when running tinytex::tlmgr_install("caption")```.

Seems that I am not the only one encountering such issue. Hence, as suggested by Yihui I tried to tinytex:::install_prebuilt(), but same as explained in threads above I still get:

Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up lz4 with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
*** LZ4 command line interface 32-bits v1.8.3, by Yann Collet ***
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2618.
Can't spawn "cmd.exe": No such file or directory at C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2635.
Setting up xz with C:/Users/wicht/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\wicht\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
xz (XZ Utils) 5.2.4
liblzma 5.2.4

Would you have any other suggestion?

Best,

Corentin

cderv commented 3 years ago

I decided to completely remove my TinyTex package and reinstall it from CRAN, but it didn't change anything.

Did you also remove the TinyTeX installation ? There is the R 📦 tinytex AND the TeX distribution it installs. Both can live separatly.

Let's try to get a clean state:

CorentinWicht commented 3 years ago

Let's try to get a clean state:

Here is the list of files contained in the C:\\Users\\wicht\\AppData\\Roaming\\TinyTeX\\bin\\win32 folder:

list.files("C:\\Users\\wicht\\AppData\\Roaming\\TinyTeX\\bin\\win32")
  [1] "afm2tfm.exe"                               "api-ms-win-core-file-l1-2-0.dll"          
  [3] "api-ms-win-core-file-l2-1-0.dll"           "api-ms-win-core-localization-l1-2-0.dll"  
  [5] "api-ms-win-core-processthreads-l1-1-1.dll" "api-ms-win-core-synch-l1-2-0.dll"         
  [7] "api-ms-win-core-timezone-l1-1-0.dll"       "api-ms-win-crt-convert-l1-1-0.dll"        
  [9] "api-ms-win-crt-environment-l1-1-0.dll"     "api-ms-win-crt-filesystem-l1-1-0.dll"     
 [11] "api-ms-win-crt-heap-l1-1-0.dll"            "api-ms-win-crt-locale-l1-1-0.dll"         
 [13] "api-ms-win-crt-math-l1-1-0.dll"            "api-ms-win-crt-multibyte-l1-1-0.dll"      
 [15] "api-ms-win-crt-process-l1-1-0.dll"         "api-ms-win-crt-runtime-l1-1-0.dll"        
 [17] "api-ms-win-crt-stdio-l1-1-0.dll"           "api-ms-win-crt-string-l1-1-0.dll"         
 [19] "api-ms-win-crt-time-l1-1-0.dll"            "api-ms-win-crt-utility-l1-1-0.dll"        
 [21] "bibtex.exe"                                "dvilualatex.exe"                          
 [23] "dviluatex.exe"                             "dvipdfm.exe"                              
 [25] "dvipdfmx.dll"                              "dvipdfmx.exe"                             
 [27] "dvips.exe"                                 "ebb.exe"                                  
 [29] "eps2eps.exe"                               "etex.exe"                                 
 [31] "extractbb.exe"                             "fc-cache.exe"                             
 [33] "fc-cat.exe"                                "fc-list.exe"                              
 [35] "fc-match.exe"                              "fc-pattern.exe"                           
 [37] "fc-query.exe"                              "fc-scan.exe"                              
 [39] "fc-validate.exe"                           "fmtutil-sys.exe"                          
 [41] "fmtutil-user.exe"                          "fmtutil.exe"                              
 [43] "gftodvi.exe"                               "gftopk.exe"                               
 [45] "gftype.exe"                                "icudt65.dll"                              
 [47] "inimf.exe"                                 "initex.exe"                               
 [49] "kpathsea632.dll"                           "kpseaccess.exe"                           
 [51] "kpsereadlink.exe"                          "kpsestat.exe"                             
 [53] "kpsewhich.exe"                             "latex.exe"                                
 [55] "latexmk.exe"                               "lua53.dll"                                
 [57] "luahbtex.dll"                              "luahbtex.exe"                             
 [59] "lualatex.exe"                              "luaotfload-tool.exe"                      
 [61] "luatex.dll"                                "luatex.exe"                               
 [63] "mf-nowin.exe"                              "mf.exe"                                   
 [65] "mft.exe"                                   "mktexfmt.exe"                             
 [67] "mktexlsr.exe"                              "mktexmf.exe"                              
 [69] "mktexpk.exe"                               "mktextfm.exe"                             
 [71] "mktexupd.exe"                              "msvcp140.dll"                             
 [73] "msvcr100.dll"                              "pdf2dsc.exe"                              
 [75] "pdfddeservername.txt"                      "pdfetex.exe"                              
 [77] "pdflatex.exe"                              "pdfopt.exe"                               
 [79] "pdftex.dll"                                "pdftex.exe"                               
 [81] "pktogf.exe"                                "pktype.exe"                               
 [83] "ps2ascii.exe"                              "ps2pdf.exe"                               
 [85] "ps2pdf12.exe"                              "ps2pdf13.exe"                             
 [87] "ps2pdf14.exe"                              "ps2ps.exe"                                
 [89] "ps2ps2.exe"                                "psv.exe"                                  
 [91] "rungs.exe"                                 "runscript.dll"                            
 [93] "runscript.exe"                             "runscript.tlu"                            
 [95] "teckit_compile.exe"                        "tex.dll"                                  
 [97] "tex.exe"                                   "texhash.exe"                              
 [99] "texlua.exe"                                "texluac.exe"                              
[101] "tlmgr.bat"                                 "ucrtbase.dll"                             
[103] "updmap-sys.exe"                            "updmap-user.exe"                          
[105] "updmap.exe"                                "vcruntime140.dll"                         
[107] "wrunscript.exe"                            "xdvipdfmx.exe"                            
[109] "xelatex.exe"                               "xetex.dll"                                
[111] "xetex.exe"  

By the way, I think the problem was fixed when I adjusted the PATH environment variables as suggested here.

Many thanks for your help and best regards,

Corentin