Rcpp can't find sugar functions

Any way you might turn this into a reproducible example (reprex) of your issue as a starting point? I'm hoping that'll improve your chances of getting a useful reply.