Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

knitting a figure to word using papaja fails

$
0
0

I am able to knit the following code to PDF. However, it always fails when trying to knit the output to Word (win 10, Rstudio 1.2.5033, R 3.6.2, papaja 0.1.0.9942). I had to delete the papaja header for posting (too much code).

```{r setup, include = FALSE}
library("papaja")
```

# Methods

```{r figure}
plot(cars)
```

The error message reads

Error running filter D:/Boelte/R_library/papaja/rmd/docx_fixes.lua: [string "--[[..."]:227: Constructor for Emph failed: [string "--[[..."]:258: attempt to index a nil value (local 'x') stack traceback: [C]: in function 'error' ..."]:227: in field 'Emph' D:/Boelte/R_library/papaja/rmd/docx_fixes.lua:14: in function 'Image' Fehler: pandoc document conversion failed with error 83

Is there any way to correct this error? It is a papaja or a pandoc error?


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>