简单画了一下mtcars ,挑战失败
代码
---
title: "Untitled"
format: revealjs
---
```{r warning=FALSE, fig.cap="a"}
library(ggplot2)
library(dplyr)
library(plotly)
gg = ggplot(mtcars, aes(x=mpg,y=cyl))+
geom_point()
plotly::ggplotly(gg)
```
报错
processing file: testit.qmd
1/2
2/2 [unnamed-chunk-1]
Quitting from lines 9-19 [unnamed-chunk-1] (testit.qmd)
Error in `add_html_caption()`:
! unused argument (xfun::grep_sub("^[^<]*<[^>]+aria-labelledby[ ]*=[ ]*\"([^\"]+)\".*$", "\\1", x))
Backtrace:
1. global .main()
2. execute(...)
3. rmarkdown::render(...)
4. knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
5. knitr:::process_file(text, output)
...
14. sew(res, options)
15. knitr:::sew.list(x, options, ...)
16. base::lapply(x, sew, options, ...)
17. FUN(X[[i]], ...)
18. knitr:::sew.knit_asis(x, options, ...)
Execution halted
> sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS
Matrix products: default
BLAS/LAPACK: /home/tc/miniconda3/envs/renv423/lib/libopenblasp-r0.3.23.so; LAPACK version 3.11.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=zh_CN.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=zh_CN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C
time zone: Asia/Shanghai
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plotly_4.10.2 dplyr_1.1.2 ggplot2_3.4.2
loaded via a namespace (and not attached):
[1] gtable_0.3.3 jsonlite_1.8.7 compiler_4.3.0 tidyselect_1.2.0
[5] parallel_4.3.0 tidyr_1.3.0 scales_1.2.1 yaml_2.3.7
[9] fastmap_1.1.1 R6_2.5.1 labeling_0.4.2 generics_0.1.3
[13] knitr_1.43 idseqr_0.7.0 htmlwidgets_1.6.2 tibble_3.2.1
[17] munsell_0.5.0 RMySQL_0.10.25 lubridate_1.9.2 DBI_1.1.3
[21] pillar_1.9.0 rlang_1.1.1 utf8_1.2.3 xfun_0.39
[25] lazyeval_0.2.2 viridisLite_0.4.2 timechange_0.2.0 cli_3.6.1
[29] withr_2.5.0 magrittr_2.0.3 crosstalk_1.2.0 digest_0.6.33
[33] grid_4.3.0 rstudioapi_0.15.0 pbapply_1.7-2 lifecycle_1.0.3
[37] vctrs_0.6.3 glue_1.6.2 data.table_1.14.8 fansi_1.0.4
[41] colorspace_2.1-0 purrr_1.0.1 httr_1.4.6 ellipsis_0.3.2
[45] tools_4.3.0 pkgconfig_2.0.3 htmltools_0.5.5