[R] Saving an expression to a file

2007-08-03 Thread Yuchen Luo
Dear Friends.
I have a very long expression and I use function D to find its derivative,
which will be even longer. I save the resulting expression in a variavle,
say bbb. But when I tried to display bbb on the screen, the R screen is not
long enough for me to view it. Is there a way to save the expression to a
file?

Best Wishes
Yuchen Luo

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch 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] Saving an expression to a file

2007-08-03 Thread Doran, Harold
Maybe use the sink() function 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Yuchen Luo
 Sent: Thursday, August 02, 2007 10:17 PM
 To: r-help@stat.math.ethz.ch
 Subject: [R] Saving an expression to a file
 
 Dear Friends.
 I have a very long expression and I use function D to find 
 its derivative, which will be even longer. I save the 
 resulting expression in a variavle, say bbb. But when I tried 
 to display bbb on the screen, the R screen is not long enough 
 for me to view it. Is there a way to save the expression to a file?
 
 Best Wishes
 Yuchen Luo
 
   [[alternative HTML version deleted]]
 
 __
 R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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] Saving an expression to a file

2007-08-03 Thread Gabor Grothendieck
See ?save

Also you might be able to use the Ryacas package to simplify your derivative.
See Simplify in 5.5 of:
http://ryacas.googlecode.com/svn/trunk/inst/doc/Ryacas.pdf

More info at:
http://code.google.com/p/ryacas/

On 8/2/07, Yuchen Luo [EMAIL PROTECTED] wrote:
 Dear Friends.
 I have a very long expression and I use function D to find its derivative,
 which will be even longer. I save the resulting expression in a variavle,
 say bbb. But when I tried to display bbb on the screen, the R screen is not
 long enough for me to view it. Is there a way to save the expression to a
 file?

 Best Wishes
 Yuchen Luo

[[alternative HTML version deleted]]

 __
 R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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.