<p>Does anyone know a good online resource for example of R code?</p>

<p>The programs do not have to be written for illustrative purposes, I am really just looking for some places where a bunch of R code has been written to give me a sense of the syntax and capabilities of the language?</p>

<p><strong>Edit:</strong> I have read the basic documentation on the main site, but was wondering if there was some code samples or even programs that show how R is used by different people.</p>

Why not look at
www.r-project.org
under documentation and read at least the introduction?  The language is sufficiently different from what you're used to that just looking at code samples won't be enough for you to pick it up. (At least, not beyond basic calculator-like functionality.)
If you want to look a bit deeper, you might want to look at
CRAN
: an online collection of R modules with source code:
cran.r-project.org