Message-ID: <c9ce82b00905020530r39c3cd2n4ca110373cc4a116@mail.gmail.com>
Date: 2009-05-02T12:30:32Z
From: Sundar Dorai-Raj
Subject: dir.create does not return a value (PR#13686)
In-Reply-To: <c9ce82b00905020527m39eeb461q5b388d685f0690d0@mail.gmail.com>
However, there is a bug in ?dir.create:
"'dir.create' indicates failure if the dirwctory already exiss."
> sessionInfo()
R version 2.9.0 (2009-04-17)
i386-apple-darwin8.11.1
locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
On Sat, May 2, 2009 at 5:27 AM, Sundar Dorai-Raj <sdorairaj at gmail.com> wrote:
> Not a bug. Try:
>
> print(dir.create("foo"))
>
> or
>
> foo <- dir.create("foo")
> foo
>
> HTH,
>
> --sundar
>
> On Sat, May 2, 2009 at 5:10 AM, ?<r.hijmans at gmail.com> wrote:
>> ?dir.create ?(part of the base package) says that:
>> "dir.create and Sys.chmod return a logical vector indicating which
>> operation succeeded for each of the files attempted"
>>
>> However, on my system it returns nothing ?(whether successful or not):
>>
>>> dir.create(":::@!#!::")
>>> dir.create('b')
>>
>>
>>> sessionInfo()
>> R version 2.9.0 (2009-04-17)
>> i386-pc-mingw32
>>
>> locale:
>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
>> States.1252;LC_MONETARY=English_United
>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>
>> attached base packages:
>> [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base
>>>
>>
>> HTH, Robert
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>