The present invention provides a compound of the Formula I: (Formular I should be inserted here) or a pharmaceutically acceptable salt, solvate or ester thereof, wherein R, R1, R2 and R3 are as defined herein. The compounds are ERK inhibitors. Also disclosed are pharmaceutical compositions comprising the above compounds and methods of treating cancer using the same.