[R] How to save R file into specific type

2010-10-25 Thread zhiji19

Hello everyone 

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

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@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.


Re: [R] How to save R file into specific type

2010-10-25 Thread Sarah Goslee
You should probably ask your professor to be certain, but I would
suggest writing your code in a text editor and saving it with the .R
extension.

Saving a .RData file using save() [you didn't tell us what you did]
saves the objects but not the code used to generate them. An .RData
file can be opened using load().

Sarah

On Mon, Oct 25, 2010 at 4:07 AM, zhiji19 zhij...@gmail.com wrote:

 Hello everyone

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

 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_.

 --



-- 
Sarah Goslee
http://www.functionaldiversity.org

__
R-help@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.


Re: [R] How to save R file into specific type

2010-10-25 Thread David Winsemius


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@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.


__
R-help@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.