Re: [R] Specifying path to a windows server

2016-04-05 Thread Jeff Newmiller
Each \ has to be escaped. Two becomes four, not three. 
-- 
Sent from my phone. Please excuse my brevity.

On April 5, 2016 10:23:11 AM PDT, John Sorkin  
wrote:
>Windows 7 (local computer)
>Windows server (server I am trying to reach)
> 
>I need to read a file whose windows path is of the form
> 
>\\Theserver\mydirectory\data.csv
> 
>You will note that as per windows standards the server name is preceded
>by two backslashes.
> 
>I am not sure how to specify this in R.  One usually needs to specify
>an escape characters in a path new which would suggest my path should
>be
> 
> 
>\\\Theserver\\mydirectory\\data.csv
> 
>This does not work; the file is not found.
> 
>What is the correct way to specify a path to a server
> 
>Thanks,
>John
>
> 
>John David Sorkin M.D., Ph.D.
>Professor of Medicine
>Chief, Biostatistics and Informatics
>University of Maryland School of Medicine Division of Gerontology and
>Geriatric Medicine
>Baltimore VA Medical Center
>10 North Greene Street
>GRECC (BT/18/GR)
>Baltimore, MD 21201-1524
>(Phone) 410-605-7119
>(Fax) 410-605-7913 (Please call phone number above prior to faxing) 
>
>Confidentiality Statement:
>This email message, including any attachments, is for t...{{dropped:15}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Specifying path to a windows server

2016-04-05 Thread Bert Gunter
almost ...

Theserver\\mydirectory\\data.csv

## should do it


-- Bert




On Tue, Apr 5, 2016 at 10:23 AM, John Sorkin
 wrote:
> Windows 7 (local computer)
> Windows server (server I am trying to reach)
>
> I need to read a file whose windows path is of the form
>
> \\Theserver\mydirectory\data.csv
>
> You will note that as per windows standards the server name is preceded by 
> two backslashes.
>
> I am not sure how to specify this in R.  One usually needs to specify an 
> escape characters in a path new which would suggest my path should be
>
>
> \\\Theserver\\mydirectory\\data.csv
>
> This does not work; the file is not found.
>
> What is the correct way to specify a path to a server
>
> Thanks,
> John
>
>
> John David Sorkin M.D., Ph.D.
> Professor of Medicine
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology and 
> Geriatric Medicine
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> (Phone) 410-605-7119
> (Fax) 410-605-7913 (Please call phone number above prior to faxing)
>
> Confidentiality Statement:
> This email message, including any attachments, is for ...{{dropped:12}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Specifying path to a windows server

2016-04-05 Thread John Sorkin
Windows 7 (local computer)
Windows server (server I am trying to reach)
 
I need to read a file whose windows path is of the form
 
\\Theserver\mydirectory\data.csv
 
You will note that as per windows standards the server name is preceded by two 
backslashes.
 
I am not sure how to specify this in R.  One usually needs to specify an escape 
characters in a path new which would suggest my path should be
 
 
\\\Theserver\\mydirectory\\data.csv
 
This does not work; the file is not found.
 
What is the correct way to specify a path to a server
 
Thanks,
John

 
John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and Geriatric 
Medicine
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing) 

Confidentiality Statement:
This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
Any unauthorized use, disclosure or distribution is prohibited. If you are not 
the intended recipient, please contact the sender by reply email and destroy 
all copies of the original message. 
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.