Are there any free/cheap sources for historical data on company earnings and valuations? I can get historical price data from Google and Yahoo, and it looks like I can get about five years of historical balance sheet data from Google using quantmod in R. Are there any longer-term sources of for these kind of data?
Bonus points for R packages or code examples.