December 2017
Beginner to intermediate
470 pages
12h 29m
English
One of the most productive ways to work with R, especially when learning it, is to use the write-execute loop, which makes use of the send to console functionality mentioned in the previous section. This will allow you to do two very important things: develop your code through small and quick iterations, which allow you to see step-by-step progress until you converge to the behavior you seek, and save the code you converged to as your final result, which can be easily reproduced using the source code file you used for your iterations. R source code files use the .R extension.
Assuming you have a source code file ready to send expressions to the console, the basic steps through the write-execute loop are as ...