write-script-rlang

Standardize R scripts in Windmill with a single JSON-returning entry point.

4|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/windmill-labs/windmill-claude-plugin --skill write-script-rlang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-script-rlang
Source: https://github.com/windmill-labs/windmill-claude-plugin/tree/main/plugins/windmill-code-plugin/skills/write-script-rlang
Command: npx skills add https://github.com/windmill-labs/windmill-claude-plugin --skill write-script-rlang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

R scripting can lack a consistent entry point and output format, making reuse and automation difficult. This skill standardizes how R scripts are authored within Windmill by enforcing a single entry point and a predictable JSON output, reducing fragmentation and errors in script development.

Core Features & Use Cases

  • Enforces a main function as the script entry point and maps inputs to function parameters for predictable behavior.
  • Encourages loading libraries with explicit usage and returns JSON-serializable results for easy downstream consumption.
  • Provides guidance for common data-analysis tasks and automation workflows within Windmill, including parameter defaults and type mapping.

Quick Start

Create a standard R script with a main function, load libraries, map inputs to parameters, and return a JSON-serializable result.

Frequently Asked Questions about write-script-rlang

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure an R script for automation workflows in Windmill?

To structure an R script for automation workflows in Windmill, define a single main function as the entry point, load required libraries, map workflow inputs to function parameters, and return JSON-serializable results for downstream consumption.

How do I return JSON-serializable results from an R script?

To return JSON-serializable results from an R script, structure your main function to output standard R data types that Windmill can automatically convert into JSON, ensuring predictable and structured data for downstream tasks.

Why does my R script need a main function for data analysis tasks?

Your R script needs a main function for data analysis tasks to establish a consistent entry point, which standardizes script execution, enables parameterization, and reduces fragmentation when automating repeatable workflows.

Can I parameterize R scripts for repeatable execution within Windmill?

Yes, you can parameterize R scripts for repeatable execution within Windmill by mapping workflow inputs directly to function parameters, allowing you to set defaults and execute predictable data-analysis tasks.

What is the best way to standardize R scripting for predictable outputs?

The best way to standardize R scripting for predictable outputs is to enforce a single entry point through a main function and return JSON-serializable results, reducing errors and ensuring consistent automation behavior.