R: [PD] communicating pd and processing