You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
Not sure if it comes from {furrr}, {sf} or another package in between, ({future}, {vctrs} ?). Let me know if I should report elsewhere...
When plotting each row of a spatial layer ({sf} polygon object) with {ggplot2} or base plot, it works with walk but I get some errors using future_walk.
This code used to work with previous versions of the packages, but I can't give precisely the version number of the different packages, or exactly when (a few month ago ?)...
Reproducible example
library(dplyr)
#> #> Attachement du package : 'dplyr'#> Les objets suivants sont masqués depuis 'package:stats':#> #> filter, lag#> Les objets suivants sont masqués depuis 'package:base':#> #> intersect, setdiff, setequal, union
library(ggplot2)
library(purrr)
library(furrr)
#> Le chargement a nécessité le package : future
library(sf)
#> Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
plan(multisession, workers=2)
# create a {sf} layer with 2 polygonslayer<-data.frame(id=1:2) %>%
mutate(geom= c("POINT(0 0)", "POINT(0 1)")) %>%
st_as_sf(wkt="geom") %>%
st_buffer(0.5)
with base plot: work with walk but not future_walk
# plot and save a map of the layer d for id == imy_plot_base<-function(i, d) {
plot(d[d$id==i, ], main=i)
}
layer %>%
pull(id) %>%
walk(my_plot_base, d=layer)
Hi
Not sure if it comes from {furrr}, {sf} or another package in between, ({future}, {vctrs} ?). Let me know if I should report elsewhere...
When plotting each row of a spatial layer ({sf} polygon object) with {ggplot2} or base plot, it works with
walk
but I get some errors usingfuture_walk
.This code used to work with previous versions of the packages, but I can't give precisely the version number of the different packages, or exactly when (a few month ago ?)...
Reproducible example
with ggplot: work with
walk
but notfuture_walk
with base plot: work with
walk
but notfuture_walk
just displaying is fine
Session info (future and base)
Created on 2023-09-04 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: