diff --git a/DESCRIPTION b/DESCRIPTION index 41c91f2..f4bd9b9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -33,7 +33,7 @@ BugReports: https://github.com/stan-dev/rstantools/issues Encoding: UTF-8 LazyData: true SystemRequirements: pandoc, C++14 -Imports: stats, utils, Rcpp (>= 0.12.16), desc, RcppParallel (>= 5.0.1) +Imports: desc, stats, utils, Rcpp (>= 0.12.16), RcppParallel (>= 5.0.1) Suggests: rstan (>= 2.17.2), usethis (>= 1.5.1), diff --git a/NEWS.md b/NEWS.md index 2151c53..2fe9b92 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,9 +1,19 @@ -# rstantools 2.0.0.9000 + + +# rstantools 2.1.0 + +* Compatibility with StanHeaders 2.21.0-3 +* Improve messaging around updating NAMESPACE file (#75, @mikekaminsky) * More informative error message for `rstan_create_package()` when directory already exists. (#68, @mcol) +* Add generated C++ files to .gitignore and .Rbuildignore (#66, @mcol) +* New generic `posterior_epred()` (#74) # rstantools 2.0.0 diff --git a/R/posterior_epred.R b/R/posterior_epred.R index 2cad13a..366611c 100644 --- a/R/posterior_epred.R +++ b/R/posterior_epred.R @@ -1,10 +1,8 @@ #' Generic function for accessing the posterior distribution of the #' conditional expectation #' -#' Extract the posterior draws of the conditional expectation. The -#' `posterior_epred()` function is essentially a less noisy way obtain averages -#' over the output of [posterior_predict()]. See the \pkg{rstanarm} package for -#' an example. +#' Extract the posterior draws of the conditional expectation. +#' See the \pkg{rstanarm} package for an example. #' #' @export #' @template args-object diff --git a/man/posterior_epred.Rd b/man/posterior_epred.Rd index 55a4116..1e934cd 100644 --- a/man/posterior_epred.Rd +++ b/man/posterior_epred.Rd @@ -19,10 +19,8 @@ matrix, where \eqn{D} is the number of draws from the posterior distribution distribution and \eqn{N} is the number of data points. } \description{ -Extract the posterior draws of the conditional expectation. The -\code{posterior_epred()} function is essentially a less noisy way obtain averages -over the output of \code{\link[=posterior_predict]{posterior_predict()}}. See the \pkg{rstanarm} package for -an example. +Extract the posterior draws of the conditional expectation. +See the \pkg{rstanarm} package for an example. } \seealso{ \itemize{