quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
280 stars 19 forks source link

Allow running/compiling Rcpp code cells #438

Open coatless opened 1 month ago

coatless commented 1 month ago

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;
}
hi_there()