[R] normalizePath

Henrik Bengtsson hb at biostat.ucsf.edu
Wed Sep 14 19:00:08 CEST 2011


Looks like it originates from a .libPaths() call, cf.

> .libPaths
function (new)
{
    if (!missing(new)) {
        new <- Sys.glob(path.expand(new))
        paths <- unique(normalizePath(c(new, .Library.site, .Library),
            "/"))
        .lib.loc <<- paths[file.info(paths)$isdir %in% TRUE]
    }
    else .lib.loc
}
<environment: 0x000000000260af78>

/Henrik

On Wed, Sep 14, 2011 at 6:06 AM, boyang zhe <zheboyang at gmail.com> wrote:
> Hi,
>
> I update R from 2.10 to 2.13.
>
> Then I find soma problems when I start R.
>
> Warning infos as below:
>
> #####
> Warning message:
> In normalizePath(c(new, .Library.site, .Library), "/") :
>  path[1]="": No such file or directory
>
> R version 2.13.1 (2011-07-08)
> Copyright (C) 2011 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: x86_64-pc-linux-gnu (64-bit)
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
>  Natural language support but running in an English locale
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
> #####
>
> Why it generate those infos about normalizePath and how to remove it?
>
> Hope for your help!
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>



More information about the R-help mailing list