Skip to content

Commit

Permalink
Update data.table import use to new post-1.5.0 identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Jan 31, 2024
1 parent 9ce5511 commit 48b49ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2024-01-31 Dirk Eddelbuettel <edd@debian.org>

* src/align.cpp (align_func_period): Update signature of C-level
exported data.table function to DT_subsetDT
* DESCRIPTION (Imports): Set to data.table (>= 1.5.0)

2023-09-20 Dirk Eddelbuettel <edd@debian.org>

* .github/workflows/ci.yaml (jobs): Update to actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions src/align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Rcpp::List align_func_duration(const nanotime::dtime* x,
auto res = Rcpp::List::create();
auto cols = makeIndex(2, XLENGTH(xdata)+1);
typedef SEXP SUBSET_DT_FUN(SEXP,SEXP,SEXP);
SUBSET_DT_FUN *subsetDT = (SUBSET_DT_FUN *) R_GetCCallable("data.table", "CsubsetDT" );
SUBSET_DT_FUN *subsetDT = (SUBSET_DT_FUN *) R_GetCCallable("data.table", "DT_subsetDT" );

size_t ix = 0, iy = 0;

Expand Down Expand Up @@ -276,7 +276,7 @@ Rcpp::List align_func_period(const nanotime::dtime* x,
auto res = Rcpp::List::create();
auto cols = makeIndex(2, XLENGTH(xdata)+1);
typedef SEXP SUBSET_DT_FUN(SEXP,SEXP,SEXP);
SUBSET_DT_FUN *subsetDT = (SUBSET_DT_FUN *) R_GetCCallable("data.table", "CsubsetDT" );
SUBSET_DT_FUN *subsetDT = (SUBSET_DT_FUN *) R_GetCCallable("data.table", "DT_subsetDT" );

size_t ix = 0, iy = 0;

Expand Down

0 comments on commit 48b49ce

Please sign in to comment.