You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARROW-6029: [R] Improve R docs on how to fix library version mismatch
Closesapache#4946 from nealrichardson/install-debug-version and squashes the following commits:
d86faf4 <Neal Richardson> Merge branch 'install-debug-version' of github.com:nealrichardson/arrow into install-debug-version
23268fb <Neal Richardson> Update PKGBUILD version too
9779c17 <Neal Richardson> Add installation troubleshooting; update version and NEWS.md from previous changes
07fa4db <Neal Richardson> Add installation troubleshooting; update version and NEWS.md from previous changes
Authored-by: Neal Richardson <neal.p.richardson@gmail.com>
Signed-off-by: François Saint-Jacques <fsaintjacques@gmail.com>
Copy file name to clipboardExpand all lines: r/README.Rmd
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ arrow::install_arrow()
40
40
41
41
for version- and platform-specific guidance on installing the Arrow C++ library.
42
42
43
+
When installing from source, if the R and C++ library versions do not match, installation may fail. If you've previously installed the libraries and want to upgrade the R package, you'll need to update the Arrow C++ library first.
44
+
43
45
## Example
44
46
45
47
```{r}
@@ -80,7 +82,7 @@ or if you prefer to stay at the command line,
80
82
R -e 'remotes::install_github("apache/arrow/r")'
81
83
```
82
84
83
-
You can specify a particular commit, branch, or [release](https://github.com/apache/arrow/releases) to install by including a `ref` argument to `install_github()`.
85
+
You can specify a particular commit, branch, or [release](https://github.com/apache/arrow/releases) to install by including a `ref` argument to `install_github()`. This is particularly useful to match the R package version to the C++ library version you've installed.
84
86
85
87
## Developing
86
88
@@ -92,8 +94,8 @@ First, install the C++ library. See the [C++ developer
92
94
guide](https://arrow.apache.org/docs/developers/cpp.html) for details.
93
95
94
96
Note that after any change to the C++ library, you must reinstall it and run
95
-
`make clean` or `git clean -fdx .` to remove any cached object code in the `r/`
96
-
directory.
97
+
`make clean` or `git clean -fdx .` to remove any cached object code in the `r/src/`
98
+
directory before reinstalling the R package. This is only necessary if you make changes to the C++ library source; you do not need to manually purge object files if you are only editing R or Rcpp code inside `r/`.
97
99
98
100
Once you've built the C++ library, you can install the R package and its
99
101
dependencies, along with additional dev dependencies, from the git checkout:
@@ -130,7 +132,7 @@ your`~/.Renviron` file to persist across sessions) so that the
130
132
131
133
The codegen.R script has these dependencies:
132
134
133
-
```
135
+
```r
134
136
remotes::install_github("romainfrancois/decor")
135
137
install.packages(c("dplyr", "purrr", "glue"))
136
138
```
@@ -159,4 +161,4 @@ R CMD build --keep-empty-dirs .
0 commit comments