我正在尝试从papaja文档中的代码块中加载一个文件。
这是我的标题
---
title : "The title"
shorttitle : "Title"
author:
- name : "First Author"
affiliation : "1"
corresponding : yes # Define only one corresponding author
address : "Postal address"
email : "my@email.com"
role: # Contributorship roles (e.g., CRediT, https://casrai.org/credit/)
- Conceptualization
- Writing - Original Draft Preparation
- Writing - Review & Editing
- name : "Ernst-August Doelle"
affiliation : "1,2"
role:
- Writing - Review & Editing
affiliation:
- id : "1"
institution : "Wilhelm-Wundt-University"
- id : "2"
institution :
authornote:
abstract:
keywords : "keywords"
wordcount : "X"
bibliography :
floatsintext : no
figurelist : no
tablelist : no
footnotelist : no
linenumbers : no
mask : no
draft : no
header-includes :
documentclass : "apa6"
classoption : "man"
output :
papaja::apa6_pdf:
latex_engine: xelatex
---我的代码块
``` {r load file}load("C:/Users/Raphael/Documents/git/masterarbeit/analysis/coding/debugging/issues/missing_viz.Rda")
如果我从控制台加载文件,一切都正常。但是,当我试图编织文档时,会出现以下错误:
File not found in resource path
Error: pandoc document conversion failed with error 99
Execution halted如果我收到同样的错误消息
``` {r load file}load("missing_viz.Rda")
(我想我可能有一个问题,让Rmd和文件不在同一个文件夹中,在https://community.rstudio.com/t/pandoc-document-conversion-failed-with-error-99/18035中-但他们!)。
有人能解释一下吗?即使在同一个文件夹中没有.Rda,如果我指定完整的路径,该命令也可以工作。
发布于 2021-12-17 21:25:38
您没有在YAML头中指定书目文件的有效路径。这就是为什么pandoc找不到文件。您必须指定.bib文件的相对或绝对文件路径,或者完全删除YAML键bibliography: (即删除YAML标头中的相应代码行)。
https://stackoverflow.com/questions/70365235
复制相似问题