Skip to content

Commit

Permalink
added an inline plugin so that we can do depends='dplyr' on cppFuncti…
Browse files Browse the repository at this point in the history
…on calls
  • Loading branch information
romainfrancois committed Feb 19, 2014
1 parent 148c490 commit 41f2d53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Collate:
'grouped-df.r'
'grouped-dt.r'
'id.r'
'inline.r'
'join-df.r'
'join-dt.r'
'join-sql.r'
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export(with_order)
exportClasses(Query)
import(assertthat)
importFrom(Rcpp,cppFunction)
importFrom(Rcpp,Rcpp.plugin.maker)
importFrom(methods,setRefClass)
importFrom(utils,head)
importFrom(utils,tail)
Expand Down
1 change: 1 addition & 0 deletions R/dplyr.r
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
#' @import assertthat
#' @importFrom utils head tail
#' @importFrom Rcpp cppFunction
#' @importFrom Rcpp Rcpp.plugin.maker
NULL
6 changes: 6 additions & 0 deletions R/inline.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
inlineCxxPlugin <- Rcpp.plugin.maker(
include.before = "#include <dplyr.h>",
package = "dplyr",
LinkingTo = c("Rcpp", "BH", "dplyr")
)

0 comments on commit 41f2d53

Please sign in to comment.