-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-1325: [R] Initial R package that builds against the arrow C++ library #2489
Changes from 1 commit
2848fd1
fb412ca
a1a5e7c
79c5001
9e3ffb4
89f14b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,3 +123,5 @@ r/LICENSE.md | |
r/NAMESPACE | ||
r/.Rbuildignore | ||
r/arrow.Rproj | ||
r/README.md | ||
r/README.Rmd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^README\.Rmd$ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
output: github_document | ||
--- | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
```{r setup, include = FALSE} | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
comment = "#>", | ||
fig.path = "man/figures/README-", | ||
out.width = "100%" | ||
) | ||
``` | ||
# arrow | ||
|
||
Low level bindings to the C++ Apache Arrow library | ||
|
||
## Installation | ||
|
||
First install a release build of the C++ bindings to arrow. | ||
|
||
```shell | ||
git clone https://github.com/apache/arrow.git | ||
cd arrow/cpp && mkdir release && cd release | ||
|
||
# It is important to statically link to boost libraries | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DARROW_BOOST_USE_SHARED:BOOL=Off | ||
make install | ||
``` | ||
|
||
Then the R package: | ||
|
||
```r | ||
devtools::install_github("apache/arrow/r") | ||
``` | ||
|
||
## Example | ||
|
||
(not yet) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
# arrow | ||
|
||
Low level bindings to the C++ Apache Arrow library | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe "R interface to the ..." or "R integration with...", since the extent of the work involved is a bit more than bindings There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. Made it |
||
|
||
## Installation | ||
|
||
First install a release build of the C++ bindings to arrow. | ||
|
||
``` shell | ||
git clone https://github.com/apache/arrow.git | ||
cd arrow/cpp && mkdir release && cd release | ||
|
||
# It is important to statically link to boost libraries | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DARROW_BOOST_USE_SHARED:BOOL=Off | ||
make install | ||
``` | ||
|
||
Then the R package: | ||
|
||
``` r | ||
devtools::install_github("apache/arrow/r") | ||
``` | ||
|
||
## Example | ||
|
||
(not yet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have to be a release build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I just stole this from @jimhester. I guess it could be other types of builds as long as
pkg-config
finds the relevant information in the./configure
script