有没有一种方法可以将长行代码 Package 在夸托中,revealjs输出?code-overflow: wrap
,适用于html
输出,但在revealjs
中似乎不适用:
---
format: revealjs
---
## A title
```{r}
#| echo: true
#| code-overflow: wrap
multipoint <- sf::st_multipoint(rbind(c(3.2,4), c(3,4.6), c(3.8,4.4), c(3.5,3.8), c(3.4,3.6), c(3.9,4.5)))
#This should be wrapped.
![](https://i.stack.imgur.com/FKigp.png)
1条答案
按热度按时间f8rj6qna1#
您可以使用
width.cutoff
属性(只有在通过knitr
渲染时才是可行的选项):