paleolimbot commented on a change in pull request #12062:
URL: https://github.com/apache/arrow/pull/12062#discussion_r781667565



##########
File path: r/R/python.R
##########
@@ -224,3 +306,14 @@ install_pyarrow <- function(envname = NULL, nightly = 
FALSE, ...) {
     reticulate::py_install("pyarrow", envname = envname, ...)
   }
 }
+
+pyarrow_version <- function() {
+  pa <- reticulate::import("pyarrow")
+  version_string <- pa$`__version__`
+  # remove trailing .devXXX because it won't work with package_version()
+  package_version(gsub("\\.dev.*?$", "", version_string))
+}
+
+pyarrow_version_pointers_changed <- function() {
+  "7.0.0"
+}

Review comment:
       Thanks for the catch...definitely better as a variable!




-- 
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]


Reply via email to