Skip to content

Commit

Permalink
docs(quarto.lua): enhance documentation for code chunk formatting fun…
Browse files Browse the repository at this point in the history
…ction to clarify behavior based on language type
  • Loading branch information
PMassicotte committed Mar 3, 2025
1 parent 5199f6b commit 5e4402b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/r/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ M.filter_code_chunks_by_eval = function(chunks)
end, chunks)
end

--- Formats the code chunks into a list of code lines that can be executed in R
--- Formats the code chunks into a list of code lines that can be executed in
--- R. The code lines are formatted based on the language of the code chunk. If
--- the language is python, the code line is wrapped in
--- reticulate::py_run_string. If the language is R, the code line is returned
--- as is.
---@param chunks table The code chunks.
---@return table
M.codelines_from_chunks = function(chunks)
Expand Down

0 comments on commit 5e4402b

Please sign in to comment.