这类似于本期,但上面提到的解决方案对我不起作用。我试图通过不同的方法安装TinyTeX:
tinytex::install_tinytex()TinyTeX-0.zip,并在其上使用tinytex:::install_prebuilt()TinyTeX-0.zip (unzip() works)并运行install-tl-windows (批处理文件)在前两种情况下,我有以下错误:
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在第三种情况下,Windows控制台如下所示:
'\\crc\users\etienne\Desktop\TinyTeX-0\TinyTeX'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.然后什么也不做就关门了。
在每种情况下,tinytex::is_tinytex()都返回FALSE,而tinytex::tlmgr_path()没有返回任何内容。
我正在研究WindowsServer2019标准(1809年)。我该怎么办?
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 17763)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.0 tools_4.1.0 tinytex_0.33.1 xfun_0.25 发布于 2021-08-31 19:21:26
在这个GitHub问题中解决
总结如下:
tinytex::install_tinytex(dir = "<path>"),其中<path>是服务器上的本地文件夹,例如在我的示例“C:/User/etienne/TinyTeX”中options(tinytex.tlmgr.path = tinytex:::find_tlmgr("<path>"))放入您的.Rprofile中(您可以轻松地使用usethis::edit_r_profile("user"))tinytex::is_tinytex()是否为TRUE (例如,您也可以尝试安装带有tinytex::tlmgr_install("booktabs")的包)https://stackoverflow.com/questions/68983628
复制相似问题