/trunk/Lib/r/rkw.swg

# · Unknown · 32 lines · 28 code · 4 blank · 0 comment · 0 complexity · 92ffbc1c4ac7dafb2c995b693d551501 MD5 · raw file

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