[R] R 2.11, shell, spaces

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Wed Sep 8 00:19:24 CEST 2010


Alternatively, you can surround the path-with-program-file-name in double quotes.

"RICHARD M. HEIBERGER" <rmh at temple.edu> wrote:

>On Windows, use the 8.3 name for file and directory names that have
>embedded blanks.
>
>You can discover the 8.3 name directly from R.
>
>> system(paste(Sys.getenv("COMSPEC"),"/c", "dir/x c:\\pr*"))
> Volume in drive C has no label.
> Volume Serial Number is B869-26CD
>
> Directory of c:\
>
>02/12/2010  03:52 PM    <DIR>          PROGRA~1     Program Files
>               0 File(s)              0 bytes
>               1 Dir(s)  84,491,341,824 bytes free
>>
>
>so now you know that on my machine you can say
>      progra~1
>instead of
>      Program Files
>
>
>It is usually, but not always, progra~1.  The 8.3 names depends on what other
>potentially confusing names are in the same directory.
>
>You can also do this from the DOS prompt
>
>dir /x  c:\pr*
>
>
>Rich
>
>______________________________________________
>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.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list