bcmaps icon indicating copy to clipboard operation
bcmaps copied to clipboard

Drop sp/raster support

Open ateucher opened this issue 3 years ago • 6 comments

As these are end-of-life and being fully replaced by sf and terra, we should drop support for them, first by deprecating, then by removing them entirely

ateucher avatar Aug 18 '22 01:08 ateucher

Would we consider using lifecycle for this, it has a nice option to deprecate just an argument or partially deprecate an argument. On quick look this is what we will need to do for most of the functions for sp?

stephhazlitt avatar Aug 19 '22 17:08 stephhazlitt

I think for the functions that provide data sources that makes sense... basically want to deprecate the class parameter right? For the utility functions (fix_geo_problems, transform_bc_albers) we want to deprecate the .Spatial methods I think using the traditional means - but I bet Lifecycle has ways to facilitate that as well?

ateucher avatar Aug 19 '22 18:08 ateucher

One other way would be to just add a message on package load saying "sp is going away, be advised". The advantage there is that it is more likely to be read. Or maybe a combination of the two.

boshek avatar Aug 19 '22 19:08 boshek

I think both are a good idea. Using the .Depracated method you get the message on the function calls "for free"

ateucher avatar Aug 19 '22 20:08 ateucher

This issue includes a fair bit of documentation updating as well. Perhaps just a notice for deprecating, but quite a bit of editing with removal.

stephhazlitt avatar Aug 20 '22 00:08 stephhazlitt

For sure. We should check the vignettes as well.

ateucher avatar Aug 20 '22 04:08 ateucher

I have a PR up starting this work. Should (or can) we duplicate this issue and have one Issue/PR for deprecating all sp-related functionality and a second Issue/PR for changing raster fxns to use {terra}?

stephhazlitt avatar Mar 21 '23 05:03 stephhazlitt

@ateucher nudge re: splitting the work behind this issue out into 2 PRs?

stephhazlitt avatar Apr 01 '23 18:04 stephhazlitt

I think two PRs makes sense

ateucher avatar Apr 01 '23 21:04 ateucher

@ateucher Do we leave this open until the Summer release?

stephhazlitt avatar Apr 12 '23 17:04 stephhazlitt

Let's close it - I'll change the name so it's more reflective of what we did, then open a new one with a milestone

ateucher avatar Apr 12 '23 17:04 ateucher

closed by #119

ateucher avatar Apr 12 '23 17:04 ateucher