Skip to content
Discussion options

You must be logged in to vote

The issue seems to be in your quarto document rather than the way you are using parameters.

You can try the following small example:

  • qmd:

    ---
    title: "My Document"
    params:
      alpha: 0.1
      ratio: 0.1
    ---
    
    # This is alpha = `r params$alpha`
    
    ratio = `r params$ratio`.
    
  • r:

    quarto::quarto_render(
      input = "gur.qmd",
      execute_params = list(ratio = 2)
    )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adpadi
Comment options

Answer selected by adpadi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants