无法安装 tinytex 包。 (也许应该更改存储库设置。)

cannot install tinytex package. (Maybe the repository setting should be changed.)

我正在使用 R 并且在 rmarkdown 上很新。我想将我的 rmarkdown 编织成 pdf 格式的文件,我已经读到我需要安装 tinytex 包。 我按照 https://yihui.org/tinytex/

上的指示输入代码

install.packages('tinytex')<br> tinytex::install_tinytex()

我得到了这个错误代码

Starting to install TinyTeX to C:\Users*****\AppData\Roaming\TinyTeX. It will take a few minutes.
Automated TeX Live installation using profile: ../tinytex.profile Loading https://mirror.unpad.ac.id/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb C:\Users*****\AppData\Local\Temp\RtmpW6xVT8\install-tl-20191206\install-tl: TLPDB::from_file could not initialize from: https://mirror.unpad.ac.id/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb C:\Users*****\AppData\Local\Temp\RtmpW6xVT8\install-tl-20191206\install-tl: Maybe the repository setting should be changed. C:\Users*****\AppData\Local\Temp\RtmpW6xVT8\install-tl-20191206\install-tl: More info: https://tug.org/texlive/acquire.html
TinyTeX installed to C:\Users*****\AppData\Roaming\TinyTeX Please quit and reopen your R session and IDE (if you are using one, such as RStudio or Emacs) and check if tinytex:::is_tinytex() is TRUE.
Warning message: In file.remove("TinyTeX/install-tl.log") : cannot remove file 'TinyTeX/install-tl.log', reason 'No such file or directory'

我重新启动我的 r 和 rstudio,运行 tinytex::is_tinytex(),returned FALSE。 我想存储库无法再访问所以我尝试更改存储库但它仍然没有改变。
谁能帮我解决问题?谢谢

更新: 我试着 运行 这是 Yihui Xie 告诉我的:

tinytex::install_tinytex(repository = 'http://dante.ctan.org/tex-archive/')

tinytex::install_tinytex(repository = 'http://mirrors.ibiblio.org/CTAN/')

和return这个

trying URL 'http://dante.ctan.org/tex-archive/systems/texlive/tlnet/install-tl.zip' length 22539829 bytes (21.5 MB) downloaded 21.5 MB trying URL 'https://yihui.name/gh/tinytex/tools/pkgs-custom.txt' Content length 81 bytes downloaded 351 bytes trying URL 'https://yihui.name/gh/tinytex/tools/tinytex.profile' Content length 81 bytes downloaded 295 bytes Starting to install TinyTeX to C:\Users\Kandu\AppData\Roaming/TinyTeX. It will take a few minutes.
Automated TeX Live installation using profile: ../tinytex.profile Loading https://mirror.unpad.ac.id/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb C:\Users\Kandu\AppData\Local\Temp\Rtmp8OFCvK\install-tl-20191209\install-tl: TLPDB::from_file could not initialize from: https://mirror.unpad.ac.id/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb C:\Users\Kandu\AppData\Local\Temp\Rtmp8OFCvK\install-tl-20191209\install-tl: Maybe the repository setting should be changed. C:\Users\Kandu\AppData\Local\Temp\Rtmp8OFCvK\install-tl-20191209\install-tl: More info: https://tug.org/texlive/acquire.html TinyTeX installed to C:\Users\Kandu\AppData\Roaming/TinyTeX Please quit and reopen your R session and IDE (if you are using one, such as RStudio or Emacs) and check if tinytex:::is_tinytex() is TRUE. Warning messages:
1: In file.remove("TinyTeX/install-tl.log") : cannot remove file 'TinyTeX/install-tl.log', reason 'No such file or directory'
2: In in_dir(target, { : The repository http://dante.ctan.org/tex-archive/systems/texlive/tlnet does not seem to be accessible. Reverting to the default CTAN mirror.

我不知道为什么,但它一直在尝试从 https://mirror.unpad.ac.id 下载。
有什么解释吗?

此刻,镜子https://mirror.unpad.ac.id does not seem to have a valid SSL certificate, so the site is not accessible. You can find other accessible mirrors at https://ctan.org/mirrors/mirmon。要指定镜像,请使用 repository 参数。下面是两个可能的例子:

tinytex::install_tinytex(repository = 'http://mirrors.ibiblio.org/pub/mirrors/CTAN/')

tinytex::install_tinytex(repository = 'http://dante.ctan.org/tex-archive/')