Riemann--Hilbert problem in the inverse scattering for the Camassa--Holm equation on the line