{"record":{"id":"8f158c222445c656","repo":"windmill-labs/windmill","slug":"r-is-not-available-because-the-feature-is-not-enab","errorCode":null,"errorMessage":"R is not available because the feature is not enabled","messagePattern":"R is not available because the feature is not enabled","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/windmill-worker/src/worker.rs","lineNumber":6826,"sourceCode":"                    conn,\n                    client,\n                    parent_runnable_path,\n                    inner_content: &code,\n                    job_dir,\n                    requirements_o: lock.as_ref(),\n                    shared_mount: &shared_mount,\n                    base_internal_url,\n                    worker_name,\n                    envs,\n                    occupancy_metrics,\n                }))\n                .await\n            }\n        }\n        ScriptLang::Rlang => {\n            #[cfg(not(feature = \"rlang\"))]\n            return Err(\n                anyhow::anyhow!(\"R is not available because the feature is not enabled\").into(),\n            );\n\n            #[cfg(feature = \"rlang\")]\n            {\n                if run_inline {\n                    return Err(Error::internal_err(\n                        \"Inline execution is not yet supported for this language\".to_string(),\n                    ));\n                }\n                Box::pin(handle_r_job(JobHandlerInputRlang {\n                    mem_peak,\n                    canceled_by,\n                    job,\n                    conn,\n                    client,\n                    parent_runnable_path,\n                    inner_content: &code,\n                    job_dir,","sourceCodeStart":6808,"sourceCodeEnd":6844,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/backend/windmill-worker/src/worker.rs#L6808-L6844","documentation":"R script execution is gated behind the optional `rlang` cargo feature. When an R job is dispatched to a worker binary built without that feature, execution fails immediately with this error because the R runtime is not compiled in.","triggerScenarios":"Running a script with language `rlang` (R) against a worker built without `--features rlang` (default dev build, minimal feature set, or an image without R).","commonSituations":"Minimal self-hosted deployments, dev backends started with default features, workspaces where R scripts exist but no R-capable worker is attached.","solutions":["Rebuild the worker with `--features rlang`","Deploy/route to a worker image that includes R support","Use another language if R support is not needed"],"exampleFix":"// before\ncargo run --features quickjs\n// after\ncargo run --features quickjs,rlang","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  await runScript(\"rlang\", code);\n} catch (e) {\n  if (String(e).includes(\"R is not available\")) {\n    // rebuild with --features rlang or reroute to an R-enabled worker\n  }\n}","preventionTips":["Include `rlang` in the worker's --features when R scripts are used","Verify feature coverage after each worker deployment","Use worker tags to keep language jobs on capable workers"],"tags":["feature-flag","r","build-config"],"backgroundTag":"feature-not-enabled","analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}