What is R's equivalent to a C-like #include to incorporate external files. I have a 2k line function that is generated and need to include it at runtime but not manage it as a package (as it changes hourly.) Any ideas? [[alternative HTML version deleted]]
?source ? On Wed, Jul 8, 2009 at 11:16 AM, Idgarad<idgarad at gmail.com> wrote:> What is R's equivalent to a C-like #include to incorporate external files. I > have a 2k line function that is generated and need to include it at runtime > but not manage it as a package (as it changes hourly.) Any ideas? > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > 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. >
source(_external_file_name)
--- On Wed, 7/8/09, Idgarad <idgarad@gmail.com> wrote:
From: Idgarad <idgarad@gmail.com>
Subject: [R] #INCLUDE
To: r-help@r-project.org
Date: Wednesday, July 8, 2009, 11:16 AM
What is R's equivalent to a C-like #include to incorporate external files. I
have a 2k line function that is generated and need to include it at runtime
but not manage it as a package (as it changes hourly.) Any ideas?
[[alternative HTML version deleted]]
______________________________________________
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.
[[alternative HTML version deleted]]
?source perhaps? --- On Wed, 7/8/09, Idgarad <idgarad at gmail.com> wrote:> From: Idgarad <idgarad at gmail.com> > Subject: [R] #INCLUDE > To: r-help at r-project.org > Received: Wednesday, July 8, 2009, 11:16 AM > What is R's equivalent to a C-like > #include to incorporate external files. I > have a 2k line function that is generated and need to > include it at runtime > but not manage it as a package (as it changes hourly.) Any > ideas?__________________________________________________________________ The new Internet Explorer? 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/