我的四开文档突然停止渲染。我已重新安装 RStudio 和 quarto 软件包,但此问题仍然存在。
当我打开新的四开文档时,我不再在新文档中看到样板材料。该文档是空的,就像我选择了一样Create Empty Document
,但我没有。
然后,当我包含的所有内容都是原始文本时,文档就会呈现,但是当我包含r
代码块,我收到以下消息。
Error in xfun::normalize_path(path, ..., must_work = must_work, resolve_symlink = FALSE) :
unused argument (resolve_symlink = FALSE)
Calls: .main ... execute -> setwd -> dirname -> <Anonymous> -> normalize_path
Execution halted
这是我尝试渲染的四开文档。
---
title: "Testing"
---
```{r}
mtcars |> print()
```
这是我的会话信息:
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 ps_1.7.2 digest_0.6.30 later_1.3.0
[5] jsonlite_1.8.4 pacman_0.5.1 evaluate_0.20 zip_2.2.2
[9] rlang_1.0.6 cli_3.4.1 rstudioapi_0.14 fs_1.5.2
[13] rmarkdown_2.20 tools_4.2.2 yaml_2.3.6 xfun_0.35
[17] fastmap_1.1.0 parallel_4.2.2 compiler_4.2.2 processx_3.8.0
[21] htmltools_0.5.4 knitr_1.41 quarto_1.2
我对 knitr 遇到了完全相同的问题,这对我有用:
- 从软件包部分删除软件包“xfun”,然后立即重新安装。
我尝试更改 R 的根安装和所有内容。事实证明这只是 xfun 的奇怪之处。
在上找到了解决方案位置社区论坛 https://community.rstudio.com/t/im-not-able-to-knit-after-i-install-new-version-of-r-rstudio-and-rtools/158029.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)