stan_cmdstan_version {instantiate} | R Documentation |
Version of CmdStan that instantiate
uses.
Description
Return the version of CmdStan that the instantiate
package uses.
Usage
stan_cmdstan_version(
cmdstan_install = Sys.getenv("CMDSTAN_INSTALL", unset = ""),
error_on_NA = TRUE
)
Arguments
cmdstan_install |
Character of length 1, how to look for an installed copy of CmdStan. See https://wlandau.github.io/instantiate/ for details. Choices:
|
error_on_NA |
Logical of length 1, whether an error should be thrown if CmdStan is not found. |
Value
Character of length 1, version of CmdStan that the instantiate
package uses. If CmdStan is not found, then the return value depends
on the error_on_NA
argument.
See Also
Other cmdstan:
stan_cmdstan_exists()
Examples
if (stan_cmdstan_exists()) {
message(stan_cmdstan_version())
}