"HTMLウィジェットがプレーンテキストで表現できない":エラー:私はJupyter</em><em>することでこれを実行しようとすると
library(leaflet)
m <- leaflet() %>%
addTiles() %>% # Add default OpenStreetMap map tiles
addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")
m # Print the map
は、私はこのエラーを取得する:
HTML widgets cannot be represented in plain text (need html)
。
としては、私が試してみましたhere提案:
library(plotly)
embed_notebook(m)
を私は得る:
Error in UseMethod("embed_notebook"): no applicable method for 'embed_notebook' applied to an object of class "c('leaflet', 'htmlwidget')
どのように私は、グラフのこの種をプロットだろうか?
#cromulent問題は、htmlwidgets :: saveWidget(m、 "m.html")はhtmlファイルを作成しないことです。 – Simone
@Simoneこれが侮辱的なことをお詫びしますが、ご使用のバージョンのRにhtmlwidgetsパッケージがインストールされていますか?もしあなたがそうしていれば、私はあなたの最後に何が問題を引き起こしているのか知るのに十分な経験はありません。 – cromulent
はい、 'htmlwidgets'パッケージがインストールされています – Simone