Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read files from a UNC-specified directory in R?

Tags:

r

unc

Is it possible to read files from a UNC-specified directory in R? I'd like to do it without using any packages beyond the base installation.

like image 793
AnjaM Avatar asked Dec 09 '22 13:12

AnjaM


1 Answers

UNC names work fine, you just have to escape them correctly. This works for me:

read.csv('\\\\COMPUTER\\Directory\\file.txt')
like image 167
nograpes Avatar answered Dec 11 '22 12:12

nograpes