R escaped a nasty end by the skin of its teeth.