Welcome to RSnippet.
RSnippet is a space to share general purpose R code snippets. You can share snippets or search for an R snippet for various purposes. You don't need an account to search, download and use R snippets from this site for free. If you register, which is also free you can upload and share your own R snippets.
Useful informations and links
RSnippet does not have built-in syntax highlighting, but if you want to make your code look nice you can use pretty R here http://www.inside-r.org/pretty-r. Pretty R will generate an html code which you can paste here to produce a nicely highlighted R code. Give it a shot!