nmoon
January 3, 2020, 9:54pm
1
I am having trouble knitting a simple .Rmd document on RStudio.cloud (it works fine on my local installation).
---
title: "Test 1"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r cars}
summary(cars)
#install.packages("tidyverse")
library(tidyverse)
```
When I try to knit the above to pdf, I get the following error message:
! Package inputenc Error: Unicode char ─ (U+2500)
(inputenc) not set up for use with LaTeX.
Error: Failed to compile test1.tex.
mel
January 4, 2020, 1:21am
2
Hi @nmoon ,
Thanks for your post, the code and error messages are helpful! With what you've provided here, I can reproduce this on Cloud too. What operating system are you using locally? I think you might be running into some aspect of this:
Hi I can knit PDF files in my mac under tidyverse version 1.1.1. When I updated to tidyverse 1.2.1 the following error is generated and the rendering stops. If I reinstall version 1.1.1 the rendering works again and PDF files are generated. Is there a fix for this? The exact error is below:
! Package inputenc Error: Unicode char √ (U+221A)
(inputenc) not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H for immediate help.
...
l.570 \end{verbatim}
Try running pandoc with --latex-engine=xelatex.
pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
Execution halted
This is independent of the code in the script and…
Have a look at that there and see if it helps (there are a couple of suggestions in there). If I change your second chunk to this:
```{r cars, message=FALSE}
summary(cars)
#install.packages("tidyverse")
library(tidyverse)
I can knit the Rmd to a PDF on Cloud without trouble.
Mel
nmoon
January 4, 2020, 1:49am
3
I'm using Windows 10 locally, and I'm using tidyverse version 1.3.0 both locally and on RStudio Cloud.
Yes, I can knit to pdf with include=FALSE (or message=FALSE), but am puzzled as to why this is necessary as it wasn't an issue until now
system
Closed
January 25, 2020, 1:49am
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.