jonkeane commented on code in PR #47940:
URL: https://github.com/apache/arrow/pull/47940#discussion_r2498941269
##########
r/data-raw/docgen.R:
##########
@@ -128,6 +128,16 @@ render_pkg <- function(df, pkg) {
paste("#'", c(header, bullets), collapse = "\n")
}
+# Load the current development version so we get the latest function mappings
+if (requireNamespace("devtools", quietly = TRUE)) {
+ devtools::load_all()
+} else {
+ warning(
+ "devtools is not installed. Using installed arrow package instead of
current working code.\n",
+ "To generate accurate docs, install the current branch version of arrow
first."
+ )
Review Comment:
I don't mind leaving this as is, but I wonder if this actually should be an
error? Is there a case where one would want to generate the stale docs?
--
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]