move r examples to its own file