"Berry, Charles" <ccbe...@ucsd.edu> writes:

>> On Nov 23, 2017, at 4:34 AM, Loris Bennett <loris.benn...@fu-berlin.de> 
>> wrote:
>> 
>> Hi,
>> 
>> TL;DR
>> -----
>> 
>>  I define the path
>> 
>>    /cm/shared/apps/R/site-library/3.4.2
>> 
>>  and add it to libPath.  Why does libPath then display it as
>> 
>>    /cm/shared/apps/R/site-library/3.4
>> 
>>  ?
>> 
>
> Because it is a symbolic link.
>
> ?.libPaths says
>
> "For consistency, the paths are always normalized by normalizePath(winslash = 
> "/")."
>
> and ?normalizePath says
>
> "...the Unix-alike platform ... attempts to turn paths into absolute paths in 
> their canonical form (no ./, ../ nor symbolic links)."  
>
> HTH,
>
> Chuck

That explains it.  A tad bizarre to my mind, but, as usual with R and as
I should have known, documented.

Thanks,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email loris.benn...@fu-berlin.de

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to