From 9246f45e5946a34cbdc73a7c59fff960537452e5 Mon Sep 17 00:00:00 2001 From: jamesaazam Date: Wed, 15 Nov 2023 10:11:35 +0000 Subject: [PATCH] Fix wrong function links --- R/dist.R | 2 +- R/extract.R | 2 +- R/opts.R | 2 +- man/dist_spec.Rd | 2 +- man/extract_parameter_samples.Rd | 2 +- man/rstan_opts.Rd | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/dist.R b/R/dist.R index 8a3dc42d0..ca107cdb8 100644 --- a/R/dist.R +++ b/R/dist.R @@ -884,7 +884,7 @@ tune_inv_gamma <- function(lower = 2, upper = 21) { #' empty vector corresponding to a parametric specification of the distribution #' (using \code{mean}, \code{sd} and corresponding uncertainties) #' -#' @param fixed Deprecated, use [fix_dist() instead] +#' @param fixed Deprecated, use [fix_dist()] instead #' as coming from fixed (vs uncertain) distributions. Overrides any values #' assigned to \code{mean_sd} and \code{sd_sd} by setting them to zero. #' reduces compute requirement but may produce spuriously precise estimates. diff --git a/R/extract.R b/R/extract.R index dc743e17a..edeb11a40 100644 --- a/R/extract.R +++ b/R/extract.R @@ -60,7 +60,7 @@ extract_static_parameter <- function(param, samples) { #' Extracts a custom set of parameters from a `{stan}` object and adds #' stratification and dates where appropriate. #' -#' @param stan_fit A fit Stan model as returned by [rstan:sampling()]. +#' @param stan_fit A fit `{stan}` model as returned by [rstan::sampling()]. #' #' @param data A list of the data supplied to the [rstan::sampling()] call. #' diff --git a/R/opts.R b/R/opts.R index d8a965f5b..9c02cbaa3 100644 --- a/R/opts.R +++ b/R/opts.R @@ -618,7 +618,7 @@ rstan_vb_opts <- function(samples = 2000, #' default. #' #' @param method A character string, defaulting to sampling. Currently supports -#' [rstan::sampling()] ("sampling") or [rstan:vb()] ("vb"). +#' [rstan::sampling()] ("sampling") or [rstan::vb()] ("vb"). #' #' @param ... Additional parameters to pass underlying option functions. #' @importFrom rlang arg_match diff --git a/man/dist_spec.Rd b/man/dist_spec.Rd index 67dda4677..09ff18824 100644 --- a/man/dist_spec.Rd +++ b/man/dist_spec.Rd @@ -63,7 +63,7 @@ probability mass function of the delay (starting with 0); defaults to an empty vector corresponding to a parametric specification of the distribution (using \code{mean}, \code{sd} and corresponding uncertainties)} -\item{fixed}{Deprecated, use \link{fix_dist() instead} +\item{fixed}{Deprecated, use \code{\link[=fix_dist]{fix_dist()}} instead as coming from fixed (vs uncertain) distributions. Overrides any values assigned to \code{mean_sd} and \code{sd_sd} by setting them to zero. reduces compute requirement but may produce spuriously precise estimates.} diff --git a/man/extract_parameter_samples.Rd b/man/extract_parameter_samples.Rd index 811420e02..ed0d509cd 100644 --- a/man/extract_parameter_samples.Rd +++ b/man/extract_parameter_samples.Rd @@ -14,7 +14,7 @@ extract_parameter_samples( ) } \arguments{ -\item{stan_fit}{A fit Stan model as returned by \code{\link[=rstan:sampling]{rstan:sampling()}}.} +\item{stan_fit}{A fit \code{{stan}} model as returned by \code{\link[rstan:stanmodel-method-sampling]{rstan::sampling()}}.} \item{data}{A list of the data supplied to the \code{\link[rstan:stanmodel-method-sampling]{rstan::sampling()}} call.} diff --git a/man/rstan_opts.Rd b/man/rstan_opts.Rd index 5d2342507..fa9f76cbb 100644 --- a/man/rstan_opts.Rd +++ b/man/rstan_opts.Rd @@ -14,7 +14,7 @@ default.} When using multiple chains iterations per chain is samples / chains.} \item{method}{A character string, defaulting to sampling. Currently supports -\code{\link[rstan:stanmodel-method-sampling]{rstan::sampling()}} ("sampling") or \code{\link[=rstan:vb]{rstan:vb()}} ("vb").} +\code{\link[rstan:stanmodel-method-sampling]{rstan::sampling()}} ("sampling") or \code{\link[rstan:stanmodel-method-vb]{rstan::vb()}} ("vb").} \item{...}{Additional parameters to pass underlying option functions.} }