Skip to content

Commit 79423a2

Browse files
committed
Fixed hallucination
1 parent 7540ab0 commit 79423a2

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

R/fit.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ CmdStanFit <- R6::R6Class(
109109
#' safest way to guarantee that everything has been read in before saving.
110110
#'
111111
#' If you have a big object to save, use `format = "qs2"` to save using the
112-
#' **qs2** package (with its fast preset).
112+
#' **qs2** package.
113113
#'
114114
#' See the "Saving fitted model objects" section of the
115115
#' [_Getting started with CmdStanR_](https://mc-stan.org/cmdstanr/articles/cmdstanr.html)
116116
#' vignette for some suggestions on faster model saving for large models.
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::qs_save()` with the `"fast"` preset and
121-
#' requires the **qs2** package.
120+
#' `"rds"`. The `"qs2"` format uses `qs2::qs_save()` and requires the **qs2**
121+
#' package.
122122
#' @param ... Other arguments to pass to [base::saveRDS()] (for `format = "rds"`)
123123
#' or `qs2::qs_save()` (for `format = "qs2"`).
124124
#'
@@ -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::qs_save(x = self, file = file, preset = "fast", ...)
151+
qs2::qs_save(x = self, file = file, ...)
152152
}
153153
invisible(self)
154154
}

man/fit-method-save_object.Rd

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

vignettes/cmdstanr.Rmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,7 @@ fit2 <- readRDS("fit.RDS")
482482
But if your model object is large, then
483483
[`$save_object()`](http://mc-stan.org/cmdstanr/reference/fit-method-save_object.html)
484484
could take a long time when saving in the default RDS format. For large objects,
485-
use the much faster [`qs2`](https://github.com/traversc/qs2) format, which uses
486-
the fast preset.
485+
use the much faster [`qs2`](https://github.com/traversc/qs2) format.
487486

488487
```{r save_object_qs_full, eval = FALSE}
489488
# Save the object to a file using qs2.
@@ -502,7 +501,7 @@ sampler diagnostics, user-specified initial values, and profiling data.
502501
fit$draws()
503502
504503
# Save the object to a file.
505-
qs2::qs_save(x = fit, file = "fit.qs2", preset = "fast")
504+
qs2::qs_save(x = fit, file = "fit.qs2")
506505
507506
# Read the object.
508507
fit2 <- qs2::qs_read("fit.qs2")

0 commit comments

Comments
 (0)