Keep getting this error message: "negative length vectors are not allowed" what does it mean?

Could you provide an example of your problem using a reprex?