basename/dirname changes warning.

Prof Brian D Ripley
Tue, 22 Oct 2002 12:00:39 +0100 (BST)

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.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: