agentsclimarketplace

R syntax validation and linting

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/r-syntax-validation-and-linting

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill r-syntax-validation-and-linting

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when after editing R configuration scripts (e.g., Modular.r) that control execution modes (Modular vs Flow) or toggling analysis parameters (Lipid, TWeen_pos, PFAS). Apply this skill before integrating edited scripts into the LipidMatch-4.

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.4 KB, 953 tokens by cl100k_base, as published. Nobody here has run it

r-syntax-validation-and-linting

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Validate R script syntax and detect errors before execution by running a parse check in R. This skill ensures edited configuration scripts (such as Modular.r) are free of syntax errors and ready for deployment across multiple software distribution directories.

When to use

After editing R configuration scripts (e.g., Modular.r) that control execution modes (Modular vs Flow) or toggling analysis parameters (Lipid, TWeen_pos, PFAS). Apply this skill before integrating edited scripts into the LipidMatch-4.2 directory structure or before running the software in production.

When NOT to use

  • Input script has not been edited or has not yet been saved to disk
  • Only static code review or style checking is needed (use a separate linter like lintr)
  • Runtime errors are expected and intentional (e.g., testing error handling)

Inputs

  • Edited R script file (e.g., Modular.r)
  • R interpreter or RStudio session

Outputs

  • Parse validation report (success or error list)
  • Confirmed syntax-error-free R script ready for deployment

How to apply

After saving edits to an R script file, open an R session and run a parse check to confirm no syntax errors are present. The parse check validates the script's structure without executing it, catching issues such as mismatched parentheses, unclosed quotes, or invalid flag assignments (e.g., malformed FLOW, csvInput, or ManuallyInputVariables declarations). If the parse succeeds, the script is ready for integration into the target directories (LipidMatch_Distribution or FluoroMatch_Modular). If errors are reported, correct them in the text editor and repeat the parse check until validation passes.

Related tools

  • R (Runtime environment for executing parse checks and validating script syntax before deployment)
  • Modular.r (Configuration script containing FLOW, csvInput, and ManuallyInputVariables flags that must pass syntax validation before integration) — https://github.com/InnovativeOmics/Core-Match

Examples

parse(file='Modular.r'); if(!inherits(try(parse(file='Modular.r')), 'try-error')) { print('Syntax validation passed') }

Evaluation signals

  • Parse check completes without error messages or warnings in the R console
  • Script file can be sourced into R without syntax errors (e.g., source('Modular.r') succeeds or parse(file='Modular.r') returns no errors)
  • Configuration flags (FLOW, csvInput, ManuallyInputVariables, Lipid, TWeen_pos) are syntactically valid assignments (e.g., 'FLOW <- FALSE' not 'FLOW = FALSE' or 'FLOW< -FALSE')
  • No unmatched delimiters or unclosed strings are reported by the parser

Limitations

  • Parse checks validate syntax only; they do not detect logical errors (e.g., conflicting parameter combinations or incorrect flag values)
  • Parse checks do not verify that dependent packages or data files exist or are accessible at runtime
  • This skill does not test the correctness of the script's output or its behavior under different configuration modes

Evidence

  • [other] Validate script syntax by running a parse check in R to confirm no syntax errors are present.: "Validate script syntax by running a parse check in R to confirm no syntax errors are present."
  • [other] For Modular mode execution, set FLOW <- FALSE; for Flow mode execution, set FLOW <- TRUE.: "For Modular mode execution, set FLOW <- FALSE; for Flow mode execution, set FLOW <- TRUE."
  • [readme] put Modular.r into two directories (replace existing code): LipidMatch-4.2\Flow\LipidMatch_Distribution LipidMatch-4.2\FluoroMatch_Modular: "put Modular.r into two directories (replace existing code): LipidMatch-4.2\Flow\LipidMatch_Distribution LipidMatch-4.2\FluoroMatch_Modular"
  • [readme] For the Modular version set FLOW <- FALSE ... csvInput <- FALSE #Alternatively you can keep this true and use csv inputs ManuallyInputVariables <- FALSE: "For the Modular version set FLOW <- FALSE ... csvInput <- FALSE #Alternatively you can keep this true and use csv inputs ManuallyInputVariables <- FALSE"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.