R is one of the most widely used programming tool in statistics.
spherepc: Spherical Principal Curves