[R] saving an R script

David Winters w|nter@@d@v|d@p @end|ng |rom gm@||@com
Fri May 10 04:54:10 CEST 2019


Greetings,

This is a super embarrassing question. But, how do you save an R
script with code? that is, not doing it the cheat way? where you just
hit the "save" button? what function would it be?

I know how to save the environment in code:

save.image(file='myEnvironment.RData')
quit(save='no')
load('myEnvironment.RData')

But how would I do the same thing with a script? rather than the environment?

David



More information about the R-help mailing list