Adding ' " ' quote inside a paste command in R

后端 未结 1 1935
庸人自扰
庸人自扰 2021-01-15 22:14

I\'m trying to have \" (double quote) inside a pasted command in R

paste(\"perl -ane \'system(\"cat /auto/Sample_output/tmp.$F[0].vcf >> S         


        
1条回答
  •  梦毁少年i
    2021-01-15 22:57

    Escape " with backslash \. So you will have:

    paste("perl -ane 'system(\"cat /auto/Sample_output/tmp.$F[0].vcf >> Sample_90061.vcf\");'",sep="")
    

    0 讨论(0)
提交回复
热议问题