Skip to content
Prev 366603 / 398502 Next

[FORGED] file.exists() on device files

Thank you for the insights, Rolf and Henrik.

To give another example, this time in non-interactive mode,

    Rscript -e "file.exists(commandArgs(TRUE))" <(echo "Hi")

    [1] TRUE

versus

    Rscript -e "normalizePath(commandArgs(TRUE))" <(echo "Hi")
    [1] "/dev/fd/63"
    Warning message:
    In normalizePath(commandArgs(TRUE)) :
      path[1]="/dev/fd/63": No such file or directory

It almost seems like file.exists and normalizePath use separate criteria 
for determining existence?

Regards

Ben
On 01/12/2017 01:42 AM, Rolf Turner wrote: