emo::ji 不会在针织文档中呈现

emo::ji won't render in knitted documents

我想在我的 rmarkdown 文档中插入一些 emojis

devtools::install_github("hadley/emo")
library(emo)
emo::ji('turtle')
# 

但是,当我在表情符号中编织我的文档时,不会呈现。 在此示例中,块渲染不起作用,但内联渲染起作用:

    Example for not rendering:

    ``` {r}
    library(emo)
    emo::ji('smile')
    ```

    Inline example:
    `r emo::j('smile')`

但是这里的内联也不起作用:

<font color='skyblue'>*Hey, you! Marine biologist! I have need of your services!  
A sea turtle begins its life amidst great danger, and not very many of them make it to the water. See, I'm working on a big budget movie - think "Saw", but with turtles. Anyway, let's make some realistic numbers of turtles for me to... **keep alive.***</font> `r emo::ji('turtle')`

我已经更新了我能想到的所有东西(R、Rstudio、所有与降价相关的包)但是唉。

经过几个小时的搜索,我发现问题出在我的会话的本机编码上。如 中所述,我执行了文件 -> 使用编码重新打开... 并选择了 UTF-8,并且为了好的措施选择了 UTF-8 作为将来的默认设置。编织文件 - 非常有效。