BPSplotHR: no visible global function definition for 'qgamma'
BPSplotHR: no visible global function definition for 'gray.colors'
BPSplotHR: no visible binding for global variable 'quantile'
BPSplotHR: no visible global function definition for 'lines'
BPSplotHR: no visible global function definition for 'abline'
BPSplotHR: no visible global function definition for 'points'
BPSpost2mcmc: no visible global function definition for 'mcmc'
BPSpostSample : logpost: no visible global function definition for
  'integrate'
BPSpostSample: no visible global function definition for 'optim'
BPSpostSample: no visible global function definition for 'rnorm'
BPSpostSample: no visible global function definition for 'rchisq'
BPSpostSample: no visible global function definition for 'rexp'
BPSpriorSample: no visible global function definition for 'rnorm'
CPPevalHR: no visible global function definition for 'pnorm'
CPPevalHR: no visible global function definition for 'dnorm'
CPPplotHR: no visible global function definition for 'pnorm'
CPPplotHR: no visible global function definition for 'qgamma'
CPPplotHR: no visible global function definition for 'gray.colors'
CPPplotHR: no visible binding for global variable 'quantile'
CPPplotHR: no visible global function definition for 'abline'
CPPplotHR: no visible global function definition for 'lines'
CPPplotHR: no visible global function definition for 'points'
CPPpost2mcmc: no visible global function definition for 'mcmc'
CPPpostSample: no visible global function definition for 'rgamma'
CPPpostSample: no visible global function definition for 'pnorm'
CPPpostSample: no visible global function definition for 'dnorm'
CPPpostSample: no visible global function definition for 'rexp'
CPPpostSample: no visible global function definition for 'runif'
CPPpriorElicit: no visible global function definition for 'qpois'
CPPpriorSample: no visible global function definition for 'rexp'
CPPpriorSample: no visible global function definition for 'rgamma'
Undefined global functions or variables:
  abline dnorm gray.colors integrate lines mcmc optim pnorm points
  qgamma qpois quantile rchisq rexp rgamma rnorm runif
Consider adding
  importFrom("grDevices", "gray.colors")
  importFrom("graphics", "abline", "lines", "points")
  importFrom("stats", "dnorm", "integrate", "optim", "pnorm", "qgamma",
             "qpois", "quantile", "rchisq", "rexp", "rgamma", "rnorm",
             "runif")
to your NAMESPACE file.