Fixed R snippets to use camelCase and other boilerplate.