Skip to content

Commit

Permalink
bug fixed in cpp native routine registraction
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvanhees committed May 8, 2017
1 parent 426fb68 commit 6c83256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ importFrom("stats", "aggregate.data.frame", "weighted.mean")
import(data.table)
importFrom("stats", "aggregate")
importFrom("utils", "setTxtProgressBar", "txtProgressBar")
useDynLib(GGIR, .registration=TRUE,.fixes = "C_")
useDynLib(GGIR, .registration=TRUE)
importFrom(Rcpp, sourceCpp)
10 changes: 2 additions & 8 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>

/* FIXME:
Check these declarations against the C/Fortran source code.
*/

/* .Call calls */
extern SEXP GGIR_numUnpack(SEXP pack);
extern SEXP GGIR_resample(SEXP raw, SEXP rawTime, SEXP time, SEXP stop);
extern SEXP GGIR_numUnpack(SEXP);
extern SEXP GGIR_resample(SEXP, SEXP, SEXP, SEXP);

static const R_CallMethodDef CallEntries[] = {
{"GGIR_numUnpack", (DL_FUNC) &GGIR_numUnpack, 1},
Expand All @@ -21,5 +16,4 @@ void R_init_GGIR(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
}

0 comments on commit 6c83256

Please sign in to comment.