Skip to content

Commit

Permalink
fix when sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Sep 8, 2024
1 parent 011681c commit 93b2733
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/Eqn.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Eqn <- function(...,
}
on.exit(sink.reset())
quarto <- setQuartoEqn(quarto)
if(is.null(quarto)) quarto <- FALSE
preview <- preview && interactive()
if(html_output || quarto) preview <- FALSE
if(preview){
Expand Down Expand Up @@ -417,6 +418,7 @@ ref <- function(label,
html_output = knitr::is_html_output(),
quarto = getOption('quartoEqn')) {
quarto <- setQuartoEqn(quarto)
if(is.null(quarto)) quarto <- FALSE
ret <- if(quarto){
if(parentheses)
sprintf('([-@%s])', label)
Expand Down

0 comments on commit 93b2733

Please sign in to comment.