nealrichardson commented on code in PR #43504:
URL: https://github.com/apache/arrow/pull/43504#discussion_r1700271857
##########
r/src/arrow_cpp11.h:
##########
@@ -389,7 +389,7 @@ SEXP to_r6(const std::shared_ptr<T>& ptr, const char*
r6_class_name) {
// R_existsVarInFrame doesn't exist before R 4.2, so we need to fall back to
// Rf_findVarInFrame3 if it is not defined.
-#ifdef R_existsVarInFrame
+#if (R_VERSION >= R_Version(4, 2, 0))
Review Comment:
Based on what I see elsewhere we don't need the parens
```suggestion
#if R_VERSION >= R_Version(4, 2, 0)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]