Source: https://www.math.sciences.univ-nantes.fr/~philippe/pdf/Anne-Philippe-cours-R.pdf