Skip to content

Commit e806f2f

Browse files
nealrichardsonfsaintjacques
authored andcommitted
ARROW-6029: [R] Improve R docs on how to fix library version mismatch
Closes apache#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>
1 parent 091b25d commit e806f2f

5 files changed

Lines changed: 29 additions & 13 deletions

File tree

ci/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
_realname=arrow
1919
pkgbase=mingw-w64-${_realname}
2020
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
21-
pkgver=0.14.0.9000
21+
pkgver=0.14.1.9000
2222
pkgrel=8000
2323
pkgdesc="Apache Arrow is a cross-language development platform for in-memory data (mingw-w64)"
2424
arch=("any")

r/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: arrow
22
Title: Integration to 'Apache' 'Arrow'
3-
Version: 0.14.0.9000
3+
Version: 0.14.1.9000
44
Authors@R: c(
55
person("Romain", "Fran\u00e7ois", email = "romain@rstudio.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-2444-4226")),
66
person("Jeroen", "Ooms", email = "jeroen@berkeley.edu", role = c("aut")),

r/NEWS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
under the License.
1818
-->
1919

20-
# arrow 0.14.0.9000
20+
# arrow 0.14.1.9000
2121

22-
# arrow 0.14.0
22+
* `read_csv_arrow()` supports more parsing options, including `col_names` and `skip`
23+
24+
# arrow 0.14.1
2325

2426
Initial CRAN release of the `arrow` package. Key features include:
2527

r/README.Rmd

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ arrow::install_arrow()
4040

4141
for version- and platform-specific guidance on installing the Arrow C++ library.
4242

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+
4345
## Example
4446

4547
```{r}
@@ -80,7 +82,7 @@ or if you prefer to stay at the command line,
8082
R -e 'remotes::install_github("apache/arrow/r")'
8183
```
8284

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.
8486

8587
## Developing
8688

@@ -92,8 +94,8 @@ First, install the C++ library. See the [C++ developer
9294
guide](https://arrow.apache.org/docs/developers/cpp.html) for details.
9395

9496
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/`.
9799

98100
Once you've built the C++ library, you can install the R package and its
99101
dependencies, along with additional dev dependencies, from the git checkout:
@@ -130,7 +132,7 @@ your`~/.Renviron` file to persist across sessions) so that the
130132

131133
The codegen.R script has these dependencies:
132134

133-
```
135+
```r
134136
remotes::install_github("romainfrancois/decor")
135137
install.packages(c("dplyr", "purrr", "glue"))
136138
```
@@ -159,4 +161,4 @@ R CMD build --keep-empty-dirs .
159161
R CMD check arrow_*.tar.gz --as-cran --no-manual
160162
```
161163

162-
[1]: https://github.com/apache/arrow/blob/master/docs/source/developers/cpp.rst
164+
[1]: https://github.com/apache/arrow/blob/master/docs/source/developers/cpp.rst

r/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ arrow::install_arrow()
4444
for version- and platform-specific guidance on installing the Arrow C++
4545
library.
4646

47+
When installing from source, if the R and C++ library versions do not
48+
match, installation may fail. If you’ve previously installed the
49+
libraries and want to upgrade the R package, you’ll need to update the
50+
Arrow C++ library first.
51+
4752
## Example
4853

4954
``` r
@@ -117,7 +122,9 @@ R -e 'remotes::install_github("apache/arrow/r")'
117122

118123
You can specify a particular commit, branch, or
119124
[release](https://github.com/apache/arrow/releases) to install by
120-
including a `ref` argument to `install_github()`.
125+
including a `ref` argument to `install_github()`. This is particularly
126+
useful to match the R package version to the C++ library version you’ve
127+
installed.
121128

122129
## Developing
123130

@@ -130,7 +137,10 @@ guide](https://arrow.apache.org/docs/developers/cpp.html) for details.
130137

131138
Note that after any change to the C++ library, you must reinstall it and
132139
run `make clean` or `git clean -fdx .` to remove any cached object code
133-
in the `r/` directory.
140+
in the `r/src/` directory before reinstalling the R package. This is
141+
only necessary if you make changes to the C++ library source; you do not
142+
need to manually purge object files if you are only editing R or Rcpp
143+
code inside `r/`.
134144

135145
Once you’ve built the C++ library, you can install the R package and its
136146
dependencies, along with additional dev dependencies, from the git
@@ -168,8 +178,10 @@ generation.
168178

169179
The codegen.R script has these dependencies:
170180

171-
remotes::install_github("romainfrancois/decor")
172-
install.packages(c("dplyr", "purrr", "glue"))
181+
``` r
182+
remotes::install_github("romainfrancois/decor")
183+
install.packages(c("dplyr", "purrr", "glue"))
184+
```
173185

174186
### Useful functions
175187

0 commit comments

Comments
 (0)