A Topological Characterization of R-Trees