output of selected portion of R script
Title
Question
if we use Run button:
in output
command print(firstVar) is also displayed.
if we use Source button:
only output is displayed.
how to elliminate command in output using Run
R Introduction-to-R-script 10-11 min 0-10 sec
Answers:
This is due to the difference in how "Run" and "Source" functions. When we run a line or selected lines then all lines are inserted directly into the console whereas when clicked on Source the file is saved to a temporary location and then sourced into the console from there (thereby creating less clutter in the console and we don't see the commands getting displayed). And you cannot eliminate command in output using Run.
Login to add comment