PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 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
12RKW(if);
13RKW(else);
14RKW(repeat);
15RKW(while);
16RKW(function);
17RKW(for);
18RKW(in);
19RKW(next);
20RKW(break);
21RKW(TRUE);
22RKW(FALSE);
23RKW(NULL);
24RKW(Inf);
25RKW(NaN);
26RKW(NA);
27RKW(NA_integer_);
28RKW(NA_real_);
29RKW(NA_complex_);
30RKW(NA_character_);
31
32#undef RKW