如果需要,可以自行在 R_ext/RS.h 文件内添加以下代码
#ifndef STRICT_R_HEADERS
#define R_PROBLEM_BUFSIZE 4096
/* Parentheses added for FC4 with gcc4 and -D_FORTIFY_SOURCE=2 */
#define PROBLEM {char R_problem_buf[R_PROBLEM_BUFSIZE];(snprintf)(R_problem_buf, R_PROBLEM_BUFSIZE,
#define MESSAGE {char R_problem_buf[R_PROBLEM_BUFSIZE];(snprintf)(R_problem_buf, R_PROBLEM_BUFSIZE,
#define ERROR ),Rf_error(R_problem_buf);}
#define RECOVER(x) ),Rf_error(R_problem_buf);}
#define WARNING(x) ),Rf_warning(R_problem_buf);}
#define LOCAL_EVALUATOR /**/
#define NULL_ENTRY /**/
#define WARN WARNING(NULL)
#endif