error when saving pdf from r markdown

An error occurs when trying to save Korean as pdf in rmarkdown.

install.packages("markdown")
install.packages("knitr")

install.packages("tinytex")
tinytex::install_tinytex()

after doing this if I code as shown below,

---
title: "Untitled"
output: pdf_document
date: '2022-03-27'
editor_options: 
  chunk_output_type: console
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

```{r}
# 궁금한 것
```

and I was going to save it as a pdf, so I pressed the knit button,

**Output:**
! LaTeX Error: Unicode character  愿€ (U+AD00)
               not set up for use with LaTeX.

This error occurs.
I thought installing LaTex would solve it, so I tried it after installing it, but the error continues.
How do I solve this problem?

This errors means that your LaTeX is not setup to use Unicode character. This is probably because you are using default pdflatex to do the conversion.

Switching to an engine which support Unicode should solve the issue.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.