Getting output and full command history for R when using the Windows Command Prompt

Question

I am a professor at a small college, and I am working with a blind student in a statistics course. We have found that R is by far the most accessible system to use, and for the screen reader to work (i.e. for it to read the output), we need to run R out of the Command Prompt (the student uses a Windows machine, specifically one running Windows 7). Though using the R console would probably be easier to operate, for some reason the screen reader being used by the student (JAWS) doesn't read the output in the console.

We have gotten to the point where we can use R out of the Command Prompt just fine, but the issue is that we cannot save the command history and the output from the Command Prompt to an external file (e.g. a .txt). I understand that I can use the sink() function to get the output in a .txt file, and I can also use the savehistory() function to get the command history, but I need something that captures both. We have also tried to use CMD outside of the R environment to try and print the full session of the Command Prompt, but that doesn't seem to capture the work that we might do during an R session.

On a Mac, this wouldn't be a problem, but I am not the best with using the Windows Command Prompt.

Any help would be greatly appreciated, and if more detail is required, I am more than happy to provide it.


Show source
| R   | windows   | command   | output   | command-prompt   2017-10-04 23:10 0 Answers

Answers to Getting output and full command history for R when using the Windows Command Prompt ( 0 )

Leave a reply to - Getting output and full command history for R when using the Windows Command Prompt

◀ Go back