The highlighted formula in the following screenshot is missing a variable

$$ \mathbf{R}'\perp = \frac{\eta}{\eta'} \left( \mathbf{R} + \cos \theta \mathbf{n} \right)$$ is wrong.
It should be:
$$ \mathbf{R}'\perp = \frac{\eta}{\eta'} \left( \mathbf{R} + |\mathbf{R}|\cos \theta \mathbf{n} \right) $$
Looks like:
