qfes / rdeck

Deck.gl widget for R
https://qfes.github.io/rdeck
MIT License
97 stars 0 forks source link

Serialise failure on empty data frame #112

Closed anthonynorth closed 7 months ago

anthonynorth commented 7 months ago

Layers with empty data frames (or equivalently, no non-empty geometries) fail to serialise.

library(rdeck)

rdeck() |>
    add_scatterplot_layer(
        data = data.frame(position = xy())
    )
#> Error in seq_len(len - 1L): argument must be coercible to non-negative integer

Created on 2024-01-31 with reprex v2.1.0