指定輸出路徑我新的R輸入語言。我與R.火花寫一個程序我想輸出保存到HDFS path.I嘗試sink
方法如何R中
sink("/user/new/output/test.txt")
但它拋出一個錯誤。任何幫助將不勝感激。
確切的錯誤信息是
error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
Calls: sink -> file
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file '/user/new/output/text.txt': No such file or directory
Execution halted
它會拋出什麼錯誤? – erasmortg
指定的文件不存在 –
可能與'匯(「/用戶/新/輸出/的test.txt」)'在你的腳本的開頭和'匯(「/用戶/新/輸出/ test.txt的」嘗試,append = TRUE)'在末尾 – erasmortg