Run R Script From R Console, Windows users need to ensure that R is added to the path environment.