Skip to content

Don't rewrite it in Rust. Rewrite the 5% that's slow: profile your app, port the hot functions with your coding agent, prove they behave the same. Python, JS/TS, Ruby, Java, Kotlin, Go, PHP, C/C++, C#, R.

R: the duration test needs SIGINT, so Unix only

Mohit Mishra101f0d231085
diff --git a/src/r.rs b/src/r.rs
index e481d5f..ac908a4 100644
--- a/src/r.rs
+++ b/src/r.rs
@@ -634,6 +634,7 @@ pub fn disable(ctx: &Ctx, port: &Port) -> Result<()> {
mod tests {
use super::*;
+ #[cfg(unix)] // scan interrupts R with SIGINT, which Windows doesn't have
#[test]
fn duration_ends_an_app_that_runs_until_closed() {
if !Command::new("Rscript").arg("--version").output().is_ok_and(|o| o.status.success()) {