首页 > 解决方案 > 使用 R pkgdown 时的 ENOENT

问题描述

克隆pkgdown的 v 1.1.0并尝试运行pkgdown::build_site()给我以下错误:

> pkgdown::build_site()
══ Building pkgdown site ═══════════════════════════════════════════════════════
Reading from: '/home/farm/Documents/pkgdown-1.1.0'
Writing to:   '/home/farm/Documents/pkgdown-1.1.0/docs'
── Initialising site ───────────────────────────────────────────────────────────
Writing 'sitemap.xml'
── Building home ───────────────────────────────────────────────────────────────
<ENOENT: [ENOENT] Failed to remove '/tmp/Rtmp0utBMA/file114d619b1b68.html': no such file or directory>
Error: [ENOENT] Failed to remove '/tmp/Rtmp0utBMA/file114d619b1b68.html': no such file or directory
Execution halted

很可能是我的 Linux 和 R 有问题,而不是包本身。话虽如此,这是环境:

我怎样才能解决这个问题?我试图避免使用chmod -R 777 /tmp/

注意:我也跑了devtools::test()devtools::check()没有错误或警告。

标签: r

解决方案


在尝试从头开始构建一个包后,我发现我的错误...... Pandoc 丢失了,从AUR安装它修复了它。


推荐阅读