R package used for power system analysis