Skip to content

Commit 7540ab0

Browse files
committed
Fixed typo
1 parent 8e3df26 commit 7540ab0

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

R/fit.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ CmdStanFit <- R6::R6Class(
117117
#'
118118
#' @param file (string) Path where the file should be saved.
119119
#' @param format (string) Serialization format for the object. The default is
120-
#' `"rds"`. The `"qs2"` format uses `qs2::qsave()` with the `"fast"` preset and
120+
#' `"rds"`. The `"qs2"` format uses `qs2::qs_save()` with the `"fast"` preset and
121121
#' requires the **qs2** package.
122122
#' @param ... Other arguments to pass to [base::saveRDS()] (for `format = "rds"`)
123-
#' or `qs2::qsave()` (for `format = "qs2"`).
123+
#' or `qs2::qs_save()` (for `format = "qs2"`).
124124
#'
125125
#' @seealso [`CmdStanMCMC`], [`CmdStanMLE`], [`CmdStanVB`], [`CmdStanGQ`]
126126
#'
@@ -148,7 +148,7 @@ save_object <- function(file, format = c("rds", "qs2"), ...) {
148148
if (!requireNamespace("qs2", quietly = TRUE)) {
149149
stop("The 'qs2' package is required for format = \"qs2\".", call. = FALSE)
150150
}
151-
qs2::qsave(x = self, file = file, preset = "fast", ...)
151+
qs2::qs_save(x = self, file = file, preset = "fast", ...)
152152
}
153153
invisible(self)
154154
}

man/fit-method-save_object.Rd

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

vignettes/cmdstanr.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ the fast preset.
490490
fit$save_object(file = "fit.qs2", format = "qs2")
491491
492492
# Read the object.
493-
fit2 <- qs2::qread("fit.qs2")
493+
fit2 <- qs2::qs_read("fit.qs2")
494494
```
495495

496496
Storage is even faster if you discard results you do not need to save.
@@ -502,10 +502,10 @@ sampler diagnostics, user-specified initial values, and profiling data.
502502
fit$draws()
503503
504504
# Save the object to a file.
505-
qs2::qsave(x = fit, file = "fit.qs2", preset = "fast")
505+
qs2::qs_save(x = fit, file = "fit.qs2", preset = "fast")
506506
507507
# Read the object.
508-
fit2 <- qs2::qread("fit.qs2")
508+
fit2 <- qs2::qs_read("fit.qs2")
509509
```
510510

511511
See the vignette [_How does CmdStanR work?_](http://mc-stan.org/cmdstanr/articles/cmdstanr-internals.html)

0 commit comments

Comments
 (0)