Skip to content

basename/dirname changes warning.

1 message · Brian Ripley

#
basename and dirname in R <= 1.6.1 are not vectorized, and they silently
ignored all elements after the first in their input.

This was not documented, and e.g. undoc assumed basename was vectorized.

For R-patched I have added a check, and giving an argument of length more
than one is there an error.

For R-devel I have vectorized the code, and so an input of length 0 will no
longer be an error.