Run the reduced example in an isolated R project and record sessionInfo() with the result.
Prompt
MetaCyberGuru reviewed
Debug this R code: [CODE]. The R version, package versions, input data shape and exact error are [ENVIRONMENT]. First reduce the problem to a minimal reproducible example. Explain the likely cause, propose the smallest correction, and provide commands for verifying the result. Do not invent package behavior or pretend to run the code. Mark any conclusion that depends on missing data.
What to customize
[CODE]
[ENVIRONMENT]
Expected output
A minimal reproducible example, reasoned diagnosis, focused fix and verification commands.
Check before you rely on it
AI output can be incomplete or wrong. Verify facts, run code, check citations and keep private data out of tools that your organization has not approved.
Comments
No comments yet. Add the first useful question or observation.