posit-dev / posit-dev/positron
R code cells are too liberally detected
Open
Nobody has claimed this yet.
area: code cells
lang: r
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
This is a valid code cell:
#+ foo
But this isn't, and we currently recognise it as cell:
# + foo
This is as close to a spec as I could find: https://bookdown.org/yihui/rmarkdown-cookbook/spin.html (thanks @juliasilge).
Not mentioned but probably #++ shouldn't be treated as cell either.
Contributor 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.
Research direction
Locate the R code-cell detector and its tests, then compare the issue's #+ foo, # + foo, and #++ examples with the linked spin specification. Done means only the first form is recognized as a cell and the latter two are not, with regression coverage for these cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100