Skip to content

Commit

Permalink
Revert stray changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Sep 11, 2023
1 parent 01412e1 commit 5cf67f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
#' The `list` to `array` conversion is intended to make it easier to prepare
#' the data for certain Stan declarations involving arrays:
#'
#' * `array[K] vector[J] v` (or equivalently `array[K] vector[J] v ` as of Stan 2.27)
#' * `vector[J] v[K]` (or equivalently `array[K] vector[J] v ` as of Stan 2.27)
#' can be constructed in \R as a list with `K` elements where each element a
#' vector of length `J`
#' * `array[K] matrix[I,J] v` (or equivalently `array[K] matrix[I,J] m ` as of Stan
#' * `matrix[I,J] v[K]` (or equivalently `array[K] matrix[I,J] m ` as of Stan
#' 2.27 ) can be constructed in \R as a list with `K` elements where each element
#' an `IxJ` matrix
#'
#' These can also be passed in from \R as arrays instead of lists but the list
#' option is provided for convenience. Unfortunately for arrays with more than
#' one dimension, e.g., `array[K,L] vector[J] v` (or equivalently
#' one dimension, e.g., `vector[J] v[K,L]` (or equivalently
#' `array[K,L] vector[J] v ` as of Stan 2.27) it is not possible to use an \R
#' list and an array must be used instead. For this example the array in \R
#' should have dimensions `KxLxJ`.
Expand All @@ -49,7 +49,7 @@
#'
#'
#' # demonstrating list to array conversion
#' # suppose x is declared as `array[2] vector[3] x` (or equivalently `array[2] vector[3] x`)
#' # suppose x is declared as `vector[3] x[2]` (or equivalently `array[2] vector[3] x`)
#' # we can use a list of length 2 where each element is a vector of length 3
#' data <- list(x = list(1:3, 4:6))
#' file <- tempfile(fileext = ".json")
Expand Down
8 changes: 4 additions & 4 deletions man/write_stan_json.Rd

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

0 comments on commit 5cf67f7

Please sign in to comment.