[R] saving an R script

Göran Broström gor@n@bro@trom @end|ng |rom umu@@e
Fri May 10 22:12:42 CEST 2019


?dump

Den 2019-05-10 kl. 04:54, skrev David Winters:
> 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
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list