Skip to content

Commit b2a99a2

Browse files
committed
Add a message header
1 parent dcd33d7 commit b2a99a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inst/include/Rcpp/r/headers.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#ifndef RCPP__R__HEADERS__H
2222
#define RCPP__R__HEADERS__H
2323

24+
#if defined(R_R_H) & defined(USING_R)
25+
#pragma message "R.h has been included before the Rcpp headers. This can lead to hard-to-debug errors and is not necessary. See https://github.com/RcppCore/Rcpp/issues/14xx"
26+
#endif
27+
2428
// include R headers, but set R_NO_REMAP and access everything via Rf_ prefixes
2529
#ifndef MAXELTSIZE
2630
#define MAXELTSIZE 8192

0 commit comments

Comments
 (0)