Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Bad wrapping of long character arguments #21
When there is a default argument of class character, there is sometimes a extra "\n" character in the \usage section which leads to a "Mismatches argument default value" warning in R CMD check.
Please not the newline for the 'c' argument.
R cmd check:
This is because we're using
An initial thought would be to split the usage string on commas, compute the length of each string + 3 (for the comma and indent), compute cumulative sum and then break using modulo arithmetic. (Probably a bit too simple)
Another solution could be to format correctly the string inside the usage() function. A very ugly solution inspired by your comment:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Good point! Here it is:
I will try to include this in the package and to propose a real git patch this week end (I can't from my work computer).