Skip to content

Commit

Permalink
Remove unnecessary brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
paulnorthrop committed Dec 2, 2023
1 parent 540aee4 commit 870182f
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 38 deletions.
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# rust 1.4.2

## Bug fixes and minor improvements

* The issue described at https://github.com/RcppCore/Rcpp/issues/1287 has been fixed to avoid WARNINGs from CRAN checks on some platforms. Thank you to Dirk Eddelbuettel for providing the fix so quickly!

* Fixed issues with the incorrect use of \itemize in some Rd files.

# rust 1.4.1

## Bug fixes and minor improvements
Expand Down
4 changes: 2 additions & 2 deletions R/ru_sampling.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
#' functions \code{phi_to_theta} and \code{log_j}.
#' @param lambda Either
#' \itemize{
#' \item {A numeric vector. Box-Cox transformation parameters, or}
#' \item {A list with components}
#' \item A numeric vector. Box-Cox transformation parameters, or
#' \item A list with components
#' \describe{
#' \item{lambda}{A numeric vector. Box-Cox parameters (required).}
#' \item{gm}{A numeric vector. Box-cox scaling parameters (optional).
Expand Down
4 changes: 2 additions & 2 deletions R/ru_sampling_rcpp.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
#' functions \code{phi_to_theta} and \code{log_j}.
#' @param lambda Either
#' \itemize{
#' \item {A numeric vector. Box-Cox transformation parameters, or}
#' \item {A list with components}
#' \item A numeric vector. Box-Cox transformation parameters, or
#' \item A list with components
#' \describe{
#' \item{lambda}{A numeric vector. Box-Cox parameters (required).}
#' \item{gm}{A numeric vector. Box-cox scaling parameters (optional).
Expand Down
12 changes: 6 additions & 6 deletions R/rust-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
#'
#' See the following package vignettes for information:
#' \itemize{
#' \item{
#' \item
#' \href{https://paulnorthrop.github.io/rust/articles/rust-a-vignette.html}{
#' Introducing rust} or \code{vignette("rust-a-vignette", package = "rust")}.
#' }
#' \item{
#'
#' \item
#' \href{https://paulnorthrop.github.io/rust/articles/rust-b-when-to-use-vignette.html}{
#' When can rust be used?} or
#' \code{vignette("rust-b-when-to-use-vignette", package = "rust")}.
#' }
#' \item{
#'
#' \item
#' \href{https://paulnorthrop.github.io/rust/articles/rust-c-using-rcpp-vignette.html}{
#' Rusting faster: Simulation using Rcpp} or
#' \code{vignette("rust-c-using-rcpp-vignette", package = "rust")}.
#' }
#'
#' }
#'
#' @references Wakefield, J. C., Gelfand, A. E. and Smith, A. F. M. Efficient
Expand Down
18 changes: 9 additions & 9 deletions R/sample_diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#' @param n A numeric scalar. Only relevant if \code{x$d = 1} or
#' \code{x$d = 2}. The meaning depends on the value of x$d.
#' \itemize{
#' \item {For d = 1 : n + 1 is the number of abscissae in the trapezium
#' method used to normalize the density.}
#' \item {For d = 2 : an n by n regular grid is used to contour the density.}
#' \item For d = 1 : n + 1 is the number of abscissae in the trapezium
#' method used to normalize the density.
#' \item For d = 2 : an n by n regular grid is used to contour the density.
#' }
#' @param prob Numeric vector. Only relevant for \code{d = 2}. The contour
#' lines are drawn such that the respective probabilities that the variable
Expand Down Expand Up @@ -224,12 +224,12 @@ plot.ru <- function(x, y, ..., n = ifelse(x$d == 1, 1001, 101),
#' @return For \code{summary.lm}: a list of the following components from
#' \code{object}:
#' \itemize{
#' \item {information about the ratio-of-uniforms bounding box, i.e.,
#' \code{object$box}}
#' \item {an estimate of the probability of acceptance, i.e.,
#' \code{object$pa}}
#' \item {a summary of the simulated values, via
#' \code{summary(object$sim_vals)}}
#' \item information about the ratio-of-uniforms bounding box, i.e.,
#' \code{object$box}
#' \item an estimate of the probability of acceptance, i.e.,
#' \code{object$pa}
#' \item a summary of the simulated values, via
#' \code{summary(object$sim_vals)}
#' }
#' @examples
#' # one-dimensional standard normal ----------------
Expand Down
6 changes: 3 additions & 3 deletions man/plot.ru.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/ru.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/ru_rcpp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions man/rust-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions man/summary.ru.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 870182f

Please sign in to comment.