You are evaluating an R CLI script generated by an AI agent using the Rapp package. The agent was asked to create a `csv-summary.R` tool that reads a CSV file and prints summary statistics, with options for column selection, verbose output, and optional file output. Read the generated `csv-summary.R` file and evaluate it against the criteria below. For each criterion, state whether it passes or fails and give a brief explanation. ## Rapp Structure 1. **Shebang**: Does the script start with `#!/usr/bin/env Rapp`? 2. **Front matter**: Does it have `#|` metadata with at least `name:` and `description:`? 3. **Top-level pattern correctness**: Are CLI arguments declared as top-level assignments using the correct Rapp patterns? - The CSV file path should be a positional arg (`<- NULL`) - `--columns` should be a named option (`<- NA_character_` or a string default) - `--verbose` should be a boolean switch (`<- FALSE`) - `--output` should be an optional named option (`<- NA_character_`) 4. **No boilerplate arg parsing**: The script should NOT use `optparse`, `argparse`, `docopt`, or manual `commandArgs()` parsing. Rapp handles all argument parsing automatically. ## Annotations 5. **Descriptions**: Do the arguments have `#| description:` annotations that would produce clear `--help` output? 6. **Short flags**: Are short aliases (`#| short:`) used where they'd be natural (e.g., `-v` for verbose, `-o` for output)? ## Functional Correctness 7. **NA/NULL handling**: Does the script correctly test optional arguments? (`!is.na()` for NA-default options, `is.null()` for optional positional args) 8. **Logic**: Does the script plausibly work — reading the CSV, selecting columns, printing a summary, and writing to file when requested? ## Overall Assessment Rate the output as one of: - **Excellent**: All criteria pass, script is clean and idiomatic Rapp - **Good**: Minor issues (e.g., missing a short flag) but structurally correct - **Needs Work**: One or more structural Rapp patterns are wrong (wrong default types, boilerplate parsing, etc.) - **Failed**: Doesn't use Rapp at all, or fundamentally misunderstands the patterns