You have said two different things. The second one is the key. R is in contact with liquid mercury, but that doesn't matter, because the vapor takes a finite time to propagate, and that is the trick. And that shows why the working fluid needs to be extremely dense. It is still counterintuitive; one would think the apparatus would lock up or implode.