Provide a more general method for saving HTML
オープン
まだ誰も着手していません。
enhancement
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Users shouldn't have to remember when to do htmlwidgets::saveWidget() vs htmltools::save_html() and the subtle differences between them.
Moreover, I want a way to save HTML tags without all the fuss of htmltools::save_html(), and I'm tired of waiting for https://github.com/rstudio/htmltools/issues/73
save_html <- function(x, file, selfcontained = TRUE, libdir = NULL, background = "white", knitrOptions = list()) {
save_fun <- if (inherits(x, "htmlwidget")) {
htmlwidgets::saveWidget
} else if (inherits(x, "shiny.tag")) {
save_tags
} else {
stop("x must be an htmlwidget or an HTML tag list", call. = FALSE)
}
save_fun(x, file, selfcontained, libdir, background, knitrOptions)
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず htmlwidgets::saveWidget() と htmltools::save_html() を比較し、提案されている save_html() ラッパーを、htmlwidget と shiny.tag のケースも含めて確認します。完了の条件は、ユーザーが既存の関数から選択する必要なく、1つの汎用的な保存メソッドで、サポートされている両方の入力型と列挙されたオプションを扱えることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- html, r
- 領域
- web-dev
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 32/100