Skip to content

"No Rcpp::export attributes or RCPP_MODULE declarations found in source" with a extern #885

@haotianlin

Description

@haotianlin
  • #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions