How to prepare predictive model in R for future defect capability process ?

Hi there,

I'm a newbie of R language and predictive analytics but I have a solid foundation of Business Intelligence and Data warehouse field.
Currently I want to learn and gather a big picture on how to create R script to make a prediction model of detecting future defect process based on history data of capability process.
I'm aware of some of R package such SixSigma and spc (statistical process control), but I dont know where to start to create predictive analytics and predictive model of future defect process, and how to documenting in PMML.

Really appreciate for any hints ?