0
我想在R中使用系统运行head <(cat file.txt)
,但转义<
是个问题。转义R中的登录粘贴/系统命令小于
system(paste("head <(cat file.txt)"))
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `head <(cat file.txt)'
I've tried escaping it, but its not working
system(paste("head /<(cat file.txt)"))
head: cannot open `/<(cat file.txt)' for reading: No such file or directory
有人可以提出一种替代方案。
干杯
对于这样的问题,提供你所使用的系统是非常重要的。 – juba 2013-03-12 15:32:54
@juba它的CentOS 5.8 – 2013-03-12 20:50:31