【问题标题】:Is it possible to reduce the size of a markdown html-report by including only specific parts of a package?是否可以通过仅包含包的特定部分来减小降价 html 报告的大小?
【发布时间】:2019-08-28 09:08:45
【问题描述】:

有没有办法通过在结果文件中仅包含所需的函数(例如,散点图)来减小 R Markdown html 报告的文件大小。我的报告是独立的。

通过创建新的 R Markdown,生成的文件大小约为 735 KB。通过添加一个带有简单绘图的新块,文件大小增加到 ~4.834 KB。

```{r additional plotly example}
plotly::plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)
```

【问题讨论】:

    标签: r markdown r-markdown


    【解决方案1】:

    Plotly 让您可以利用投掷的不同捆绑包。

    这是由partial_bundle() 完成的。 可以在此处找到不同大小的捆绑包:

    更多信息:

    【讨论】:

    • 如何在 plotly python 中实现同样的效果?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多