[R] setwd et chaines de caracteres

G See gsee000 at gmail.com
Sat Mar 17 21:49:51 CET 2012


R> tmp <- tempdir()
R> dir.create(file.path(tmp, "a space"))
R> setwd(file.path(tmp, "a space"))
R> getwd()
[1] "/private/var/folders/ss/9z_gwf2j5bbbrhnv67_gh7700000gp/T/Rtmpg1MLIT/a
space"


On Sat, Mar 17, 2012 at 8:08 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
> On Mar 17, 2012, at 3:43 AM, André Smolarz wrote:
>
>> Bonjour,
>>
>> J'utilise R sous Mac OS X 10.6.8 et je souhaiterais savoir s'il est
>> possible d'utiliser la commande "setwd()" avec un nom de réperoire
>> contenant des espaces ?
>>
>> Si oui, comment faire ?
>
>
> I had no trouble using setwd() with a  folder name having with a space in
> it. If you are having difficulty you need to describe your problems.
>
> Mac specific questions are supposed to go to the R-SIG-Mac mailing list.
>
> --
>
> David Winsemius, MD
> West Hartford, CT
>
> ______________________________________________
> 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