Add option to write out current R to a text file for 1D case.

* writeRToFile method added to PDFactory
* Option to use it in pofd_delta_getPD