Although it seems like you've solved your problem, I'll provide an answer in the context of developing an R package that you might want to e.g. release to CRAN.
Basically, the authors of BayesLogit
need to explicitly make such routines available for other package authors. This is described in section 5.4.2 of R-exts. From what I can see from the source code, this has not been done, so you will be unable to call the native C/C++ code in that package in a portable, and hence CRAN-acceptable, way.
Your options are:
- Contact the package authors and ask if they can make this routine available,
- Copy the source to your own package and give attribution; if you do this, make sure the licence you use is compatible with theirs.
As an aside, Rcpp also has facilities for making source code available in a header only way. The package authors might be convinced to make some routines available by using Rcpp Attributes, as it provides a simple mechanism for allowing other authors to use C++ code in a package; see section 3.5.