Skip to content

Commit

Permalink
Changes to build R client on Fedora. (#4492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcferretti committed Sep 14, 2023
1 parent a00fa05 commit 0328e4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/rdeephaven/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Description: The `rdeephaven` package provides an R API for communicating with t
and bind it to a server-side variable so you can access it from any Deephaven client. Finally, you can run Python or Groovy
scripts on the Deephaven server, so long as your server is equipped with that capability.
License: Apache License (== 2.0)
Depends: R (>= 4.1.2), Rcpp (>= 1.0.10), arrow (>= 12.0.0), R6 (>= 2.5.0), dplyr (>= 1.1.0)
Depends: R (>= 3.5.3), Rcpp (>= 1.0.10), arrow (>= 12.0.0), R6 (>= 2.5.0), dplyr (>= 1.1.0)
Imports: Rcpp (>= 1.0.10), R6 (>= 2.5.0), dplyr (>= 1.1.0)
LinkingTo: Rcpp
Suggests: testthat (>= 3.0.0)
Expand Down
2 changes: 1 addition & 1 deletion R/rdeephaven/src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PROTOBUF_LIB = `[ -f \${DHCPP}/local/lib/libprotobufd.so ] && echo -lprotobufd |

DEPENDENCY_LIBS = \
$(PROTOBUF_LIB) \
-larrow_flight -larrow -larrow_bundled_dependencies \
-larrow \
`PKG_CONFIG_PATH=\${DHCPP}/local/lib/pkgconfig pkg-config --libs grpc++`

# tells the compiler where to look for additional include directories
Expand Down
3 changes: 2 additions & 1 deletion R/rdeephaven/src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <iostream>
#include <memory>
#include <stdexcept>
#include <cstddef>
#include <string>
#include <utility>
#include <vector>
Expand Down Expand Up @@ -256,7 +257,7 @@ class TableHandleWrapper {
abs_sort = std::vector<bool>(cols.size(), abs_sort[0]);
}

for(int i = 0; i < cols.size(); i++) {
for(std::size_t i = 0; i < cols.size(); i++) {
if (!descending[i]) {
sort_pairs.push_back(deephaven::client::SortPair::Ascending(cols[i], abs_sort[i]));
} else {
Expand Down

0 comments on commit 0328e4c

Please sign in to comment.