Skip to content

Commit 8e8e0f4

Browse files
committed
add example
1 parent 3eaa74e commit 8e8e0f4

8 files changed

Lines changed: 24 additions & 0 deletions

R/model.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
#' file <- file.path(cmdstan_path(), "examples/bernoulli/bernoulli.stan")
5555
#' mod <- cmdstan_model(file)
5656
#' mod$print()
57+
#' # Print with line numbers. This can be set globally using the
58+
#' # `cmdstanr_print_line_numbers` option.
59+
#' mod$print(line_numbers = TRUE)
5760
#'
5861
#' # Data as a named list (like RStan)
5962
#' stan_data <- list(N = 10, y = c(0,1,0,0,0,0,0,0,0,1))

man/CmdStanModel.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cmdstan_model.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cmdstanr-package.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/model-method-optimize.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/model-method-pathfinder.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/model-method-sample.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/model-method-variational.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)