[R] How to save R file into specific type

David Winsemius dwinsemius at comcast.net
Mon Oct 25 16:09:15 CEST 2010


On Oct 25, 2010, at 1:07 AM, zhiji19 wrote:

>
> Hello everyone
>
> Can you please teach me how to save my homework as .R file?

?savehistory  # at least on a Mac

(If you wanted the whole console session with output, then it would be  
select-all, copy, paste into a text editor, save as a text file.)

You can also save named functions with save() and then bring back in  
with load().

-- 
David.
>
> I write my code in RGui. When I tried to save my work, the RGui only  
> allows
> me to save it as .RData.
> Is there any difference between .R and .RData?
>
> By the way, after I save my work as .RData, I cannot reopen it. when  
> I open
> it, only one message comes out as following: "ARGUMENT_ignored_."
>
> -- 
> View this message in context: http://r.789695.n4.nabble.com/How-to-save-R-file-into-specific-type-tp3009879p3009879.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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