Allow running/compiling Rcpp code cells

Open
#438 9 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

No file or test is named. Start by tracing how executable code-cell languages are registered for Run Cell and compare the existing R path with the Rcpp example in the issue. Validate completion with the supplied Quarto document: the Rcpp cell should offer Run Cell, compile successfully, and let the following R cell return 42.

Written by the indexing model from the issue text.

Description

knitr-support vscode

Please consider adding registration to compile code cells marked with Rcpp. Right now, the only way to run them would be to render the entire document.

A screenshot showing a Quarto document with an `Rcpp` cell without the ability to 'Run Cell' above it. Followed by an R cell that has 'Run Cell' above it.
---
title: "Rcpp test"
format: html
engine: knitr
---

```{Rcpp}
// [[Rcpp::export]]
int hi_there() {
    return 42;
}
```

```{r}
hi_there()
```
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto

All issues in quarto-dev/quarto

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.