- #include <Rcpp.h>
- using namespace Rcpp;
- extern "C" double digamma(double);
- //[[Rcpp::export]]
- RcppExport SEXP updatealpha_u(SEXP alphaut,
This is the head of my code, and when I want to use sourceCpp("updatealpha_u.cpp") to make this function into global environment, it comes out with this error.
-
sourceCpp("/Users/lehostal/Desktop/summer research/COMPASS_Extent/updatealpha_u.cpp")
- Warning message:
- In sourceCpp("/Users/lehostal/Desktop/summer research/COMPASS_Extent/updatealpha_u.cpp") :
- No Rcpp::export attributes or RCPP_MODULE declarations found in source