From 2cc6836dc2b3c590d4de146443ce65a7abc5c21d Mon Sep 17 00:00:00 2001 From: Devin Pastoor Date: Sat, 25 Apr 2015 14:06:47 -0400 Subject: [PATCH] explicitly declare Rcpp --- R/compile_sim_cpp.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/compile_sim_cpp.R b/R/compile_sim_cpp.R index c650ff7..632dab7 100644 --- a/R/compile_sim_cpp.R +++ b/R/compile_sim_cpp.R @@ -22,6 +22,6 @@ compile_sim_cpp <- function(func, p) { paste0(readLines(cpp_file), collapse="\n"), paste0(cpp_code, collapse = "\n")) # cat(sim_func) - sourceCpp(code=sim_func) + Rcpp::sourceCpp(code=sim_func) } }