Do you plan to have a dedicated Quarto parser to handle R code chunks?
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 8/100
Research direction
This is a design question rather than a code change, and the payload names no files to edit. Start by reading the linked pull request #1440 to see how Ark currently detects earlier library() calls in Quarto chunks, then check how the #| eval: false case from the issue would be handled. Done means a maintainer answers whether a dedicated Quarto/R Markdown chunk parser is planned, before anyone writes code.
Written by the indexing model from the issue text.
Description
Hi, I'm not sure this is the right place to ask but I have a question regarding how Ark handles Quarto documents, which might influence how Jarl does it.
Currently, Jarl can check Quarto and R Markdown documents but this support is a bit brittle because it uses the following process:
- parse the text of the file
- extract the code chunks and code options with regex
- concatenate chunks (possibly after excluding chunks that we know are never evaluated)
- check the code as a single file
- remap diagnostics to their original location
The two weak parts are 1) the extraction of code chunks based on regex, and 2) determining the list of chunk options for each chunk (in particular, Jarl doesn't handle chunk options defined in the YAML frontmatter, for now).
I suspect this is (or will be) a challenge encountered by Ark as well when it needs to report diagnostics in Quarto files. For instance, https://github.com/posit-dev/ark/pull/1440 adds support to detect earlier library() calls, but I think a library() call shouldn't be considered as populating the namespace if it is in a chunk with #| eval: false and, AFAICT, this case isn't handled by the linked PR.
If this is indeed an issue for Ark too, I suppose a more robust solution would be to have a dedicated Quarto parser that gathers chunks and their options, and that resolves options defined in the frontmatter and those defined in the chunks themselves. Although Quarto 2 is developed in Rust, it might be overkill since I wouldn't need all the extra stuff about Markdown syntax. Is my understanding correct? Is this something that you plan to develop? If so, would it also handle R Markdown files? I'm asking simply to avoid duplicated work if this is on the roadmap for the near future.
- Dominant language
- Rust
- Stars
- 342
- Forks
- 31
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 31
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/ark
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 5/5 Over a week Newbie friendliness 15/100
posit-dev/ark#1461 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
posit-dev/ark#1360 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pop-os/cosmic-applets#1619 ·
Maintainers usually reply within 3 days
-
binding:python bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coollabsio/orbit#72 ·
Maintainers usually reply within 1 day
-
swc_common: Mark::least_ancestor never returns when the answer is the root mark (ANT-2026-JYDQGGRT)Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
swc-project/swc-ai-issues#137 ·
-
Synth suite fails unless run from the repo root: signal_flow's default machine path is cwd-relativeOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Nimblesite/osprey#370 ·
Maintainers usually reply within 1 day