Re: [Rd] weird dir() behavior with broken symlinks

2016-10-18 Thread Karl Forner
another strange behavior of list.dirs(), that seems related: docker run -ti rocker/r-base > setwd(tempdir()) > file.symlink('from', 'to') [1] TRUE > list.dirs(recursive=FALSE) [1] "./to" > file.symlink('C/non_existing.doc', 'broken.txt') [1] TRUE > list.dirs(recursive=FALSE) [1] "./broken.txt"

[Rd] weird dir() behavior with broken symlinks

2016-10-18 Thread Karl Forner
I encountered very weird behavior of the dir() function, that I just can not understand. Reproducible example: docker run -ti rocker/r-base R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) > # s