How to save the console in R studio (input+output)

Ok, thanlk you. The markdown seems interesting...
Unluckily the sink() function save only output.