Better late than never?
Stumbled upon this while annoyed by a similar error. I believe R is simply telling you that the type in your code should be "l" instead of "line".
That is a lower case "L".
Type "line" will be truncated to type "l".
But you have probably figured that out by now :)