Home | History | Annotate | Download | only in r
      1 /*
      2   Warnings for R keywords, built-in names and bad names.
      3 */
      4 
      5 #define RKW(x) %keywordwarn("'" `x` "' is a R keyword, renaming to '_" `x`"'", rename="_%s")  `x`
      6 
      7 /*
      8   Warnings for R reserved words taken from
      9   http://cran.r-project.org/doc/manuals/R-lang.html#Reserved-words
     10 */
     11 
     12 RKW(if);
     13 RKW(else);
     14 RKW(repeat);
     15 RKW(while);
     16 RKW(function);
     17 RKW(for);
     18 RKW(in);
     19 RKW(next);
     20 RKW(break);
     21 RKW(TRUE);
     22 RKW(FALSE);
     23 RKW(NULL);
     24 RKW(Inf);
     25 RKW(NaN);
     26 RKW(NA);
     27 RKW(NA_integer_);
     28 RKW(NA_real_);
     29 RKW(NA_complex_);
     30 RKW(NA_character_);
     31 
     32 #undef RKW
     33