You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2022/05/31 16:16:31 UTC

[arrow] branch master updated: MINOR: [R][Docs] Add note about RSPM binary installation

This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 55022ced37 MINOR: [R][Docs] Add note about RSPM binary installation
55022ced37 is described below

commit 55022ced37c154c2acafd58f14b6743cd95cc54f
Author: SHIMA Tatsuya <ts...@gmail.com>
AuthorDate: Tue May 31 18:16:24 2022 +0200

    MINOR: [R][Docs] Add note about RSPM binary installation
    
    Closes #13212 from eitsupi/about-rspm-install
    
    Authored-by: SHIMA Tatsuya <ts...@gmail.com>
    Signed-off-by: Antoine Pitrou <an...@python.org>
---
 r/vignettes/install.Rmd | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/r/vignettes/install.Rmd b/r/vignettes/install.Rmd
index d9cdb5664d..2c402e162d 100644
--- a/r/vignettes/install.Rmd
+++ b/r/vignettes/install.Rmd
@@ -43,10 +43,22 @@ If you want a quicker installation process, and by default a more fully-featured
 
 For example, if you are using Ubuntu 20.04 (Focal):
 
-```{r, eval = FALSE}
+```r
+options(
+  HTTPUserAgent =
+    sprintf(
+      "R/%s R (%s)",
+      getRversion(),
+      paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])
+    )
+)
+
 install.packages("arrow", repos = "https://packagemanager.rstudio.com/all/__linux__/focal/latest")
 ```
 
+Note that the User Agent header must be specified as in the example above.
+Please check [the RStudio Package Manager: Admin Guide ](https://docs.rstudio.com/rspm/admin/serving-binaries/#using-linux-binary-packages) for more details.
+
 For other Linux distributions, to get the relevant URL, you can visit 
 [the RSPM site](https://packagemanager.rstudio.com/client/#/repos/1/overview),
 click on 'binary', and select your preferred distribution.