[R] Read code from character string
Johannes Huesing
johannes at huesing.name
Thu Jun 17 21:32:42 CEST 2010
Dear expRts,
I have a character string, say a <- "print(9**2)". How do I execute
the contents of the string, parsed as R code? Do I have to open a
connection and use cat(a), and parse it at the other end?
Cheers
Johannes
--
Johannes Hüsing There is something fascinating about science.
One gets such wholesale returns of conjecture
mailto:johannes at huesing.name from such a trifling investment of fact.
http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
More information about the R-help
mailing list