2016年5月19日木曜日

how to know current working directory



type getwd() on console.

> getwd()
[1] "/Users/<directory_name>/R_proj/tmp1"


Please be aware that just type "getwd" doesn't work.

> getwd
function () 
.Internal(getwd())
<bytecode: 0x101fb2000>
<environment: namespace:base>

Please note that ,without any additional location information, the functions which read/write files look for the object in this directory. "read.csv" and "write.csv" are among them.

0 件のコメント: