Hi and welcome!
I am not quite sure what you mean with that. Could you maybe post an example of your data? You can get some information on how to do this here.
Generally, shapiro.test()
does indeed not work if all your samples have the same value. This makes sense since it tests for the distribution in the whole population, and if all the samples have the same value, the test does not really have the information it would need to test this.
So I'd recomend you to look into the way you obtained / generated your samples and try to understand why they all have the same value. Is it due to the way you are obtaining the data or was there maybe an error in handling them?