karldw commented on a change in pull request #11001:
URL: https://github.com/apache/arrow/pull/11001#discussion_r702308381



##########
File path: r/R/install-arrow.R
##########
@@ -137,3 +136,93 @@ reload_arrow <- function() {
     message("Please restart R to use the 'arrow' package.")
   }
 }
+
+
+#' Create a source bundle that includes all thirdparty dependencies
+#'
+#' @param dest_file File path for the new tar.gz package. Defaults to
+#' `arrow_V.V.V_with_deps.tar.gz` in the current directory (`V.V.V` is the 
version)
+#' @param source_file File path for the input tar.gz package. Defaults to
+#' downloading the package from CRAN (or whatever you have set as the first in
+#' `getOption("repos")`)
+#' @return The full path to `dest_file`, invisibly
+#'
+#' This function is used for setting up an offline build. If it's possible to
+#' download at build time, don't use this function. Instead, let `cmake`
+#' download the required dependencies for you.
+#' These downloaded dependencies are only used in the build if
+#' `ARROW_DEPENDENCY_SOURCE` is unset, `BUNDLED`, or `AUTO`.
+#' https://arrow.apache.org/docs/developers/cpp/building.html#offline-builds
+#'

Review comment:
       While we're at it, should we mention other binary platforms?
   
   ```
   #' Note: If you're using binary packages, e.g. from RStudio Package Manager 
on
   #' Linux or the standard CRAN binaries on Windows or Mac, you shouldn't need 
to
   #' use this function. You can download the appropriate binary from your 
package
   #' repository, and transfer that to the offline computer.
   #' If you still want to make a source bundle with this function, make sure to
   #' set the first repo in `options("repos")` to be a mirror that contains 
source
   #' packages (that is: something other than the RSPM binary mirror URLs).
   #' Any OS can create the source bundle, but it cannot be installed on 
Windows.
   #' (Instead, use a standard Windows binary package.)
   ```




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to