echarts4r在Quarto中无法渲染。

huangapple go评论80阅读模式
英文:

echarts4r won't render in Quarto

问题

我在尝试渲染一个对象的 echarts 图表时遇到了问题。

我已经查看了文档和许多教程,但出于某种原因,我无法在 HTML Quarto 文件中渲染 echarts4r 图表 - 我是否漏掉了什么?

在渲染 quarto 时,我收到了下面的错误消息 - 对我来说不太清楚是为什么

Quitting from lines 14-23 [unnamed-chunk-1] (test_echarts4r.qmd)
Error in add_html_caption():
! unused argument (xfun::grep_sub("^[^<]<[^>]+aria-labelledby[ ]=[ ]\"([^\"]+)\".$", "\", x))
---
title: "echarts4r"
format: html
---

```{r}
library(echarts4r)
library(tidyverse)

diamonds %>%
  count(color) %>%
  echarts4r::e_charts(x = color) %>%
  echarts4r::e_bar(serie = n)
```

我已在仓库中创建了一个问题:

https://github.com/JohnCoene/echarts4r/issues/554

英文:

I am having trouble rendering an echart for object.

I've checked the documentation and numerous tutorials but for some reason I can't render an echart4r chart in html quarto file -- Am I missing something?

I receive the below error when rendering in quarto -- Its not clear to me why

Quitting from lines 14-23 [unnamed-chunk-1] (test_echarts4r.qmd)
Error in add_html_caption():
! unused argument (xfun::grep_sub(&quot;^[^&lt;]&lt;[^&gt;]+aria-labelledby[ ]=[ ]&quot;([^\&quot;]+)&quot;.$&quot;, &quot;&quot;, x))
---
title: &quot;echarts4r&quot;
format: html
---

```{r}
library(echarts4r)
library(tidyverse)

diamonds %&gt;% 
  count(color) %&gt;% 
  echarts4r::e_charts(x = color) %&gt;% 
  echarts4r::e_bar(serie = n)
```

I've created a issue in the repo:

https://github.com/JohnCoene/echarts4r/issues/554

答案1

得分: 0

问题已通过将Quarto更新到最新版本来解决。

英文:

Problem solved by updating Quarto to latest current release version

huangapple
  • 本文由 发表于 2023年7月5日 00:10:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76614366.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定