Skip to content

Commit 7fe39d4

Browse files
MINOR: [R] Add the explicit mirror to install R dependencies (#48649)
### Rationale for this change Otherwise, it complains that the mirror has to be manually set in, e.g., R profile. Should be best to make it self-contained. ### What changes are included in this PR? This PR fixes the R dev guides (https://arrow.apache.org/docs/4.0/r/articles/developing.html) to provide an explicit mirror when downloading related dependencies. ### Are these changes tested? Manually tested when setting up the dev. ### Are there any user-facing changes? No, dev-only. --------- Co-authored-by: Jonathan Keane <jkeane@gmail.com>
1 parent 6c7de4e commit 7fe39d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

r/vignettes/developers/setup.Rmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,12 @@ cmake --build . --target install -j8
182182

183183
### Step 4 - Build the Arrow R package
184184

185-
Once you've built libarrow, you can install the R package and its
186-
dependencies, along with additional dev dependencies, from the git
187-
checkout:
185+
Once you've built libarrow, you can install the R package and its dependencies, along with additional dev dependencies, from the git checkout like below. You might need to either pick and set a repository interactively or you could add a repository to the `install.packages()` command with `repos="https://cloud.r-project.org"`.
188186

189187
```{bash, save=run}
190188
popd # To go back to the root directory of the project, from cpp/build
191189
pushd r
192-
R -e "install.packages('remotes'); remotes::install_deps(dependencies = TRUE)"
190+
R -e 'install.packages("remotes"); remotes::install_deps(dependencies = TRUE)'
193191
R CMD INSTALL --no-multiarch .
194192
```
195193

0 commit comments

Comments
 (0)