The new argument 'depth' would specify the depth to recurse up the file path.  
As in:
> dirname("path/to/some/where", depth = 3L)[1] "path"
The new argument would take on the default value of 1L, since this is the 
current behavior of the function.

 Problems will arise when 'depth' is unusually large (i.e. dirname(path, depth 
= 1e5)).

During execution, a warning could be issued to the user indicating an unusually 
large value for 'depth'.

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to