Skip to content

Commit

Permalink
ARROW-13610: [R] Unvendor cpp11
Browse files Browse the repository at this point in the history
Closes #11360 from jonkeane/ARROW-13610-unvendor-cpp11

Authored-by: Jonathan Keane <[email protected]>
Signed-off-by: Jonathan Keane <[email protected]>
  • Loading branch information
jonkeane committed Jan 7, 2022
1 parent 7943664 commit 8139cdd
Show file tree
Hide file tree
Showing 29 changed files with 13 additions and 3,766 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,14 @@ jobs:
cd r/tests
sed -i.bak -E -e 's/"arrow"/"arrow", reporter = "location"/' testthat.R
rm -f testthat.R.bak
- name: Install cpp11 (on R 3.6)
# Since we force installation of binary packages below, dependency versions
# are frozen for old versions of R. We need newer cpp11 than is available as
# "binary" (though it doesn't matter because the cpp11 R package is just a
# vehicle for the header-only C++ code.
if: ${{ matrix.rtools == 35 }}
shell: Rscript {0}
run: install.packages("cpp11", type = "source")
- name: Install R package dependencies
shell: Rscript {0}
run: |
Expand Down
3 changes: 1 addition & 2 deletions ci/conda_env_r.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ r-bit64
r-dplyr
r-purrr
r-r6
# We are currently vendoring cpp11; restore in ARROW-13610
# r-cpp11
r-cpp11
r-rlang
r-tidyselect
r-vctrs
Expand Down
3 changes: 1 addition & 2 deletions dev/tasks/conda-recipes/r-arrow/configure.win
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -euxo pipefail

# Remove the -I../inst/include/ when unvendoring cpp11 in ARROW-13610
echo "PKG_CPPFLAGS=-DNDEBUG -I\"${LIBRARY_PREFIX}/include\" -I\"${PREFIX}/include\" -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_S3 -DARROW_R_WITH_JSON -I../inst/include/" > src/Makevars.win
echo "PKG_CPPFLAGS=-DNDEBUG -I\"${LIBRARY_PREFIX}/include\" -I\"${PREFIX}/include\" -DARROW_R_WITH_ARROW -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_S3 -DARROW_R_WITH_JSON" > src/Makevars.win
echo "PKG_CXXFLAGS=\$(CXX_VISIBILITY)" >> src/Makevars.win
echo 'CXX_STD=CXX11' >> src/Makevars.win
echo "PKG_LIBS=-L\"${LIBRARY_PREFIX}/lib\" -larrow_dataset -lparquet -larrow" >> src/Makevars.win
1 change: 1 addition & 0 deletions r/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Suggests:
testthat (>= 3.1.0),
tibble,
withr
LinkingTo: cpp11 (>= 0.4.2)
Collate:
'arrowExports.R'
'enums.R'
Expand Down
26 changes: 0 additions & 26 deletions r/inst/include/cpp11.hpp

This file was deleted.

46 changes: 0 additions & 46 deletions r/inst/include/cpp11/R.hpp

This file was deleted.

44 changes: 0 additions & 44 deletions r/inst/include/cpp11/altrep.hpp

This file was deleted.

Loading

0 comments on commit 8139cdd

Please sign in to comment.