Need to explicitly print to serialize a ggplot object
まだ誰も着手していません。
評価
調査の方向性
Start by running the reprex in issue #78 and comparing the /dontwork and /works endpoints with the png serializer. Trace how the serializer handles a returned ggplot object versus an explicitly printed one. Done means /dontwork returns the plot successfully without requiring print().
索引モデルが issue の本文から書いたものです。
説明
If I don't run print(), it will return "error": "500 - Internal server error". In the following reprex I have one that works and one that does not:
library(plumber2)
library(ggplot2)
#* Get the state's plot
#* @get /dontwork
#* @serializer png
function() {
p <- ggplot(mtcars) +
geom_point(aes(mpg, wt))
p
}
#* Get the state's plot
#* @get /works
#* @serializer png
function() {
p <- ggplot(mtcars) +
geom_point(aes(mpg, wt))
print(p)
}
- 主要言語
- R
- スター
- 119
- フォーク
- 17
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
posit-dev/plumber2 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
`except` argument in `Plumber2$add_shiny` method is not respected対応中かも @cgiachalis が 139 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
Development Roadmapオープン
難易度 2/5 1時間未満 初心者へのやさしさ 20/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
posit-dev/plumber2 の issue をすべて見る
似ている issue
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothオープンarea/ode-pde good first issue help wanted kind/contract severity/4-minor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apich-Organization/rssn#383 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PRL-PRG/r-compile-server#70 · コメント 1 件 ·
-
dependencies docker enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
posit-dev/images-workbench#257 ·
メンテナーはふだん 1 日以内に返信
-
dependencies docker enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
posit-dev/images-package-manager#188 ·
メンテナーはふだん 1 日以内に返信
-
dependencies docker enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
posit-dev/images-connect#222 ·
メンテナーはふだん 1 日以内に返信