integrating script r with conflict analyzer code