Skip to content

Commit 1114c95

Browse files
committed
Merge branch 'master' of github.com:RcppCore/Rcpp
2 parents 62fae4c + 837ad76 commit 1114c95

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2015-06-18 Dirk Eddelbuettel <[email protected]>
2+
3+
* R/Attributes.R (evalCpp): Add support for plugings argument
4+
* man/evalCpp.Rd: Document argument
5+
16
2015-06-07 JJ Allaire <[email protected]>
27

38
* src/attributes.cpp: Don't load sourceCpp dynamic library if it's

R/Attributes.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ print.bytes <- function( x, ...){
297297
# Evaluate a simple c++ expression
298298
evalCpp <- function(code,
299299
depends = character(),
300+
plugins = character(),
300301
includes = character(),
301302
rebuild = FALSE,
302303
showOutput = verbose,
@@ -305,7 +306,8 @@ evalCpp <- function(code,
305306

306307
code <- sprintf( "SEXP get_value(){ return wrap( %s ) ; }", code )
307308
env <- new.env()
308-
cppFunction(code, depends = depends, includes = includes, env = env,
309+
cppFunction(code, depends = depends, plugins = plugins,
310+
includes = includes, env = env,
309311
rebuild = rebuild, showOutput = showOutput, verbose = verbose )
310312
fun <- env[["get_value"]]
311313
fun()

inst/NEWS.Rd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
\itemize{
1616
\item Don't load \code{sourceCpp} dynamic library if it's already
1717
been loaded.
18+
\item The \code{evalCpp} function now also supports the \code{plugins}
19+
argument.
1820
}
1921
\item Changes in Rcpp Documentation:
2022
\itemize{

man/evalCpp.Rd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Evaluates a C++ expression. This creates a C++ function using
99
\code{\link{cppFunction}} and calls it to get the result.
1010
}
1111
\usage{
12-
evalCpp(code, depends = character(), includes = character(),
13-
rebuild = FALSE, showOutput = verbose,
12+
evalCpp(code, depends = character(), plugins = character(),
13+
includes = character(), rebuild = FALSE, showOutput = verbose,
1414
verbose = getOption("verbose"))
1515
areMacrosDefined(names, depends = character(), includes = character(),
1616
rebuild = FALSE, showOutput = verbose,
@@ -22,6 +22,9 @@ C++ expression to evaluate
2222
}
2323
\item{names}{
2424
names of the macros we want to test
25+
}
26+
\item{plugins}{
27+
see \code{\link{cppFunction}}
2528
}
2629
\item{depends}{
2730
see \code{\link{cppFunction}}

0 commit comments

Comments
 (0)