Category "cat"

Knit PDF Output with CAT in R

I am using CAT command in R to get following output. The Output in knitted PDF file is different to what I get in console. How can I get similar output in PDF a

Cat files into a new files in multiple sub directories

I would like to be able to find the sub directories in a folder Then located the .txt files in each sub folder Then CAT those files in each sub folder into a ne