Twice that I recall, both while at least mildly ill. Once, in law school, I was late to class and had an assigned seat in the middle of a row, so I was not keen to draw further attention to myself, but I had a rumbly tummy and the bowel wants what it wants. Eventually, despite what felt to me like truly heroic efforts, I did in fact excuse myself, only to find that floor's bathroom was closed. going down a flight of stairs does things to your regular clenching pressure, and by the time I made it to the toilet, "slug of poo" had made its way into my boxers. Damage to the undies was surprisingly mild, but I went ahead and called it a day for the rest of my classes, as I had skipped many times for far less legitimate reasons.
The other time I was just home with the shits and didn't quite make it once. Afterwards I moved my "I'm sick" nest a lot closer to the bathroom for the rest of the day.