[R] dir.create only gives first character of name when warning
Keith Ponting
k.ponting at aurix.com
Fri Nov 14 17:37:08 CET 2008
This is not a major issue, but is there any way to get the full
directory name out when dir.create issues a warning?
I am running R 2.8.0 patched on Windows Vista - full details below.
With the following code:
dir.create("test")
obscure<-"test"
dir.create(obscure)
I get the warning message:
In dir.create(obscure) : 't' already exists
Session details:
R version 2.8.0 Patched (2008-10-21 r46766)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
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.
> dir.create("test")
> obscure<-"test"
> dir.create(obscure)
Warning message:
In dir.create(obscure) : 't' already exists
> sessionInfo()
R version 2.8.0 Patched (2008-10-21 r46766)
i386-pc-mingw32
locale:
LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United
Kingdom.1252;LC_MONETARY=English_United
Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
Thanks in advance,
Keith Ponting
Aurix Ltd, Malvern WR14 3SZ UK
More information about the R-help
mailing list