Disclosed are compounds, for example, a compound of formula I,wherein R, R0, R1-R8, n, X, Y, Y', and E are as described herein, pharmaceutical compositions containing such compounds, and methods of treating or preventing a disease or condition for example, cancer, mediated by the ras gene.