[R] libPaths displays truncated path?

Loris Bennett loris.bennett at fu-berlin.de
Fri Nov 24 07:58:31 CET 2017


"Berry, Charles" <ccberry at ucsd.edu> writes:

>> On Nov 23, 2017, at 4:34 AM, Loris Bennett <loris.bennett at 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.bennett at fu-berlin.de



More information about the R-help mailing list