[BioC] some problem of dir.create()
Kasper Daniel Hansen
kasperdanielhansen at gmail.com
Sun Jul 10 15:49:02 CEST 2011
Also, file.path() does not make sure in any way that the path actually
exists on your system. Essentially it is equivalent to
paste(baseDir, GEO, sep = "/")
You could f.eks. try
file.exists(file.path(baseDir, GEO))
As Martin said: your problem is that when you create the directory (by
using dir.create()) you do not give it the full path name.
Kasper
On Sun, Jul 10, 2011 at 6:13 AM, Martin Morgan <mtmorgan at fhcrc.org> wrote:
> On 07/09/2011 04:49 PM, cao zongfu wrote:
>>
>> Dear prof.,Hi
>> When I used dir.create() to creat a directory on Win7, I found the
>> created directory not in my specified path, It always in
>> "C:\Users\123\Documents", and "123" is my username. I want to know how to
>> creat a directory in my specified path on Win7?
>> In addition, I also found that installed packages are in
>> "C:\Users\123\Documents\R\win-library\2.13", not in the R installed path
>> of
>> "C:\Program Files\R\R-2.13.0\library".But it does not affected the normal
>> use of R packages.
>>
>> R session are as follows,
>>
>>> GEO<- "GSM189662"
>>> baseDir= "D:/project/geodownload"
>>>
>>> try(dir.create(GEO))
>>> storedir<- file.path(baseDir, GEO)
>>> storedir
>>
>> [1] "D:/project/geodownload/GSM189662"
>
> dir.create(storedir)
>
> Martin
>
>> I checked the directory GSM189662, it does not in
>> the "D:/project/geodownload/", but in "C:\Users\123\Documents". Would you
>> please help me?
>>
>> Zongfu Cao
>> BeiGene(Beijing), China
>>
>>
>>
>>
>
>
> --
> Computational Biology
> Fred Hutchinson Cancer Research Center
> 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109
>
> Location: M1-B861
> Telephone: 206 667-2793
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>
More information about the Bioconductor
mailing list