Skip to content

bug: plotting sf objects in positron is unsuccessful #5046

Open

Description

System details:

MacOS

Positron and OS details:

Positron Version: 2024.09.0 (Universal) build 27
Code - OSS Version: 1.92.0
Commit: d996153
Date: 2024-09-11T02:38:46.408Z
Electron: 30.1.2
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

Interpreter details:

R 4.4.1

Describe the issue:

Plotting an sf object using its base method fails to be rendered in positron

Steps to reproduce the issue:

geo <- sf::st_make_grid(
  cellsize = c(1, 1),
  offset = c(0, 0),
  n = 10
) 
x <- sample(c(0, 1), 100, prob = c(0.9, 0.1), replace = TRUE)
plot(sf::st_sf(x = x, geo))

Expected or desired behavior:

See the output in RStudio

Image

See the output in positron

Image

Were there any error messages in the UI, Output panel, or Developer Tools console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area: plotsIssues related to Plots category.bugSomething isn't workinglang: rsupport

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions