I am planning on using this function trimws
but I have read here (How to trim leading and trailing whitespace in R?) that it is a relatively recent addition to R base
(>=3.2.0
).
Does this mean that if I use trimws
in a package I should enforce the requirement R base version greater or equal than 3.2.0
?
In general, do you check for every R base
function you use when it was introduced, and if recent, you use an Imports
value in DESCRIPTION
to account for that?