Thermodynamic formalism for transient dynamics on the real line