Hello! Somewhat strange question. Suppose I have some sort of GUI. Clicking for example button in it I expect some R-commands to be executed in R. But I want this commands to be logged into R command line and the output printed there too (I want to save this later in transcript file). How this can be done?