diff --git a/R/compile_sim_cpp.R b/R/compile_sim_cpp.R index 5360c74..d16cf4f 100644 --- a/R/compile_sim_cpp.R +++ b/R/compile_sim_cpp.R @@ -28,5 +28,5 @@ compile_sim_cpp <- function(func, p, cpp_show_function) { if(cpp_show_function) { cat(sim_func) } - sourceCpp(code=sim_func) + Rcpp::sourceCpp(code=sim_func) }