inbo / fistools

Repo containing widely used data & functions of the FIS team
https://inbo.github.io/fistools/
Other
1 stars 0 forks source link

[BUG] Error in `stopifnot()`: ! Can't transform a data frame with duplicate names. #47

Closed SanderDevisscher closed 2 months ago

SanderDevisscher commented 2 months ago

Welke functie/dataset calculate_polygon_centroid

Beschrijf de bug When running the function I get:

Error in `stopifnot()`:
! Can't transform a data frame with duplicate names.
Run `rlang::last_trace()` to see where the error occurred.

Stappen om de bug te reproduceren: https://github.com/inbo/backoffice-wild-analyse/blob/f9a60905239bc9a7cff1427d2d6fb96a256af734/Basis_Scripts/WIZ_afschotmelding_prep.Rmd#L32-L102

Verwachte uikomst The function should return a dataframe with centroids

Screenshots Indien van toepassing

Extra context sessionInfo

package - versie ‘1.0.0’

Checklist

1in de mate van het mogelijke

2Indien het nodig is om de functie grotendeels te herzien (bvb tgv een depricated package) om de bug op te lossen of als er meerdere functies en/of datasets bij betrokken zijn, gebruik: usethis::use_version(which = "minor").