[R] sink() and source()

Greg Snow Greg.Snow at intermountainmail.org
Thu Jul 5 18:19:15 CEST 2007


I don't know what is causing your problem,  But if you goal is to
produce html then you may want to look at the R2HTML package.  It may do
what you want without using sink.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of 
> elyakhlifi mustapha
> Sent: Thursday, July 05, 2007 9:35 AM
> To: R-help at stat.math.ethz.ch
> Subject: [R] sink() and source()
> 
> hello,
> I have  a problem running a R script actually I'm using 
> source() and sink() and it doesn't work
> 
> source("T:/agents/melyakhlifi/R/essai_rep.r")
> 
> to execute a file and the file contain
> 
> sink("T:/agents/melyakhlifi/R/sortie.html")
> cat("<html><body><pre>\n")
> matrix.merge2
> cat("</pre></body></html>\n")
> sink()
> 
> 
> I don't understand why when I execute just the syntax with 
> sink() it work but in using source() it doesn't work thanks
> 
> 
>       
> ______________________________________________________________
> _______________ 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list