Can this be implemented in twinkle? https://github.com/r-spatial/stars/issues/622#issuecomment-1485084554