Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I save everything from console

Tags:

r

I am a beginner working in r, how do you save everything from console, your commands, as well as the output, everything that appears in the console.

Only things that I could come up with is sink(...), before starting the session. i.e.

sink("dataout.txt")

but then nothing appears in the console everything(except plots) goes to dataout.txt file. What I need is to be able to look at what I have done throughout any given session after dabbling around. thx

like image 806
Bhail Avatar asked Sep 15 '25 11:09

Bhail


1 Answers

You can use savehistory("dataout.txt") which will write the entire history as plaintext.

like image 183
scribbles Avatar answered Sep 17 '25 00:09

scribbles