Skip to content

Commit

Permalink
Add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Jul 15, 2024
1 parent 47a2d25 commit 12b5126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/parse_error.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ cnd_footer.odin_parse_error <- function(cnd, ...) {
}

code <- cnd$code
## See https://cli.r-lib.org/reference/links.html#click-to-run-code
## RStudio will only run code in namespaced form
explain <- cli::format_inline(
"For more information, run {.run odin2::odin_error_explain(\"{code}\")}")

Expand Down

0 comments on commit 12b5126

Please sign in to comment.