【发布时间】:2013-01-08 07:40:41
【问题描述】:
我试图在 R 中的粘贴命令中包含 "(双引号)
paste("perl -ane 'system("cat /auto/Sample_output/tmp.$F[0].vcf >> Sample_90061.vcf");'",sep="")
它说
Error: unexpected symbol in "paste("perl -ane 'system("cat"
我尝试单独创建引用的部分,然后将其粘贴
complicated = paste('"cat /auto/Sample_output/tmp.$F[0].vcf >> Sample_90061.vcf"',sep="")
但它显示为
> complicated
[1] "\"cat /auto/Sample_output/tmp.$F[0].vcf >> Sample_90061.vcf\""
有人可以帮我解决这个问题吗?
【问题讨论】:
-
放入“in”。你用 \" 例如:"男孩说,\"Hello World!\""
-
shQuote、sQuote和dQuote也可能是需要研究的函数。
标签: r