Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do Not Update R until after school is out! #1

Open
dchodzin opened this issue May 6, 2024 · 0 comments
Open

Do Not Update R until after school is out! #1

dchodzin opened this issue May 6, 2024 · 0 comments

Comments

@dchodzin
Copy link

dchodzin commented May 6, 2024

I updated R to Version 4.4 and lost some functionality within the Raster package (and packages downstream that use Raster will be affected). It became apparent when this portion of code would not run after updating:

ggplot() +
geom_sf(data=houstonMSA) +
geom_raster(data=rast(lc_change) %>% na.omit %>% filter(value > 0),
aes(x,y,fill=as.factor(value))) +
scale_fill_viridis(direction = -1, discrete=TRUE, name ="Land Cover\nChange") +
labs(title = "Land Cover Change, 2000-2010") +
mapTheme +
theme(legend.direction="horizontal")

This is early in the assignment, and downstream raster functions are not supported either.

The error message shows up when you hit data=rast(lc_change), and the usual workarounds (specifying the package from which you're calling the command OR replacing "rast" with "raster") do not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant