Get Started →
Function Errors

Duplicate arguments

Matches: duplicate '([^']+)' arguments

WHAT THIS ERROR MEANS

You passed the same named argument more than once to a function.

HOW TO FIX IT

1. Remove the duplicate argument.

2. Check for both positional and named versions of the same argument.

CODE EXAMPLES

BAD — THIS CAUSES THE ERROR
plot(x, y, col = "red", col = "blue")
GOOD — CORRECT APPROACH
plot(x, y, col = "red")

Still stuck?

Paste your code in RChat and the AI will fix this error in context.

Try RChat Free →

RELATED FUNCTION ERRORS