0
私は、.txtファイルで使用される区切り文字を識別するアルゴリズムを持っています。私はcat()
を使って見つかったセパレータを出力したいと思います。私は%s
とsprintf()
を使用しています。sprintfを使って文字列 " t"を表示するには?
current.sep = "\t"
cat(sprintf("Found separator : %s. \n", current.sep))
## Found separator : .
cat(sprintf("Found separator : %s. \n", "current.sep"))
## Found separator : current.sep.
## I want:
## Found separator : \t.
それは...それを示すのですか? '## Separator:.'(コメントはスペースは削除されていますが、w/e)には' \ t'がありますか? –