added example xml and sample .R file