[R] libPaths displays truncated path?

Berry, Charles ccberry at ucsd.edu
Thu Nov 23 17:29:39 CET 2017


> 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


More information about the R-help mailing list