One way around to avoid this error is the following:
crs_28992 <- CRS(SRS_string = "EPSG:28992") slot(d, "proj4string") <- crs_28992
*You need packge 'sp'
** Applied with OS Windows 11