Skip to content
Prev 260237 / 398502 Next

R-code in R-file documentation

I guess what you want is cat(readLines("file.r"), sep = "\n")

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Wed, May 18, 2011 at 4:03 AM, Brian Oney <zenlines at gmail.com> wrote: