[Rd] Sys.readlink (on BSD vs Linux)
mikko.korpela at aalto.fi
Mon Feb 29 11:44:42 CET 2016
On 29.02.2016 10:34, Sven E. Templer wrote:
> Hello together,
> the function `Sys.readlink` uses the system's readlink command to resolve symlink paths. On OSX/BSD the command has a different meaning than on Linux .
> There exists the tool 'realpath', which seems suitable for the task, at least applied at the command line level . It is used in `normalizePath`.
> I suggest (at least the latter) to
> * use realpath instead readlink within Sys.readlink (do_readlink -> do_normalizepath)
> * link to `normalizePath` in the Rd document, eventually mentioning the difference
> Many thanks,
>  see
What do you mean by "different meaning"? How are the command line tools
 relevant when R is using the C function 'readlink'?
Aalto University School of Science
Department of Computer Science
More information about the R-devel