如何在Rinydown中启用表情符号,以便在Shiny-Server中发布后显示

pdu*_*ois 8 r emoji r-markdown shiny shiny-server

我有以下Rmarkdown代码,它使用Hadley的emo(ji)包.

---
title: "My First Shiny"
runtime: shiny
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
    vertical_layout: scroll
---


```{r setup, include=FALSE}
```


Rows {data-height=800}
-----------------------------------------------------------------------

### Section1 `r strrep(emo::ji("heart_eyes_cat"), 5)`

Some text
Run Code Online (Sandbox Code Playgroud)

在我的Rstudio IDE中,生成这个没有问题:

在此输入图像描述

由于图像中的高度表现,表情符号未能出现在我当地的Shiny-server中.

我该如何启用它?

Rac*_*len 6

根据github 文档,您的文件应如下所示:

S3method(print,emoji)
export(ji)
export(ji_find)
export(ji_p)


ji_p <- function(x) {
   stopifnot(is.numeric(x))

   out <- stats::symnum(x,
     corr = FALSE,
     na = FALSE,
     cutpoints = c(0, 1e-5, 0.001, 0.01, 0.05, 0.1, 1),
     symbols = c(ji("laughing"), ji("joy"), ji("grin"), ji("smile"), ji("thinking"), ji("poop"))
   )

   structure(out, class = c("emoji", class(out)))

 }
Run Code Online (Sandbox Code Playgroud)

我没有看到任何速记,因为您似乎, 5在代码中使用了(使用),并且r前缀现在似乎已被删除;当使用内联时,它会被使用,但需要在它之前和之后使用额外的“刻度”,如下所示:

 `` `r emo::ji("smile")` ``
Run Code Online (Sandbox Code Playgroud)

您使用的是旧版本的提交吗?对 knitr 的需求已被删除,现在只需要 tibble。检查这个最新的提交文档

我希望这是有帮助的