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]]
On 14/09/2011 9:06 AM, boyang zhe 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?I would guess you have something in an Rprofile or Rprofile.site file that is causing the error. See ?Startup for the rules on where R looks for those files, and the other things that happen during startup that might be causing this. Duncan Murdoch
Looks like it originates from a .libPaths() call, cf.> .libPathsfunction (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. >
Reasonably Related Threads
- heatmap clustering dendrogram export
- Bug or undocumented behavior in normalizePath() with file system links on windows
- Inconsistant result for normalizePath on Windows
- normalizePath is sometimes very slow for nonexistent UNC paths
- normalizePath output depends on existence of directory