Skip to content

Commit 071b450

Browse files
committed
Added conditional path checking for cmdstanr
1 parent eada5eb commit 071b450

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/TIGER.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
#' @export
5454
#'
5555
#' @examples
56-
#' if (requireNamespace("cmdstanr", quietly = TRUE)) {
56+
#' if (requireNamespace("cmdstanr", quietly = TRUE) && tryCatch({
57+
#' nzchar(cmdstanr::cmdstan_path())}, error = function(e) FALSE)) {
5758
#' data(TIGER_expr)
5859
#' data(TIGER_prior)
5960
#' tiger(TIGER_expr,TIGER_prior)

man/tiger.Rd

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

0 commit comments

Comments
 (0)