RForcecom is an R package provides the connection to Force.com and Salesforce.com from R.
Visit RForcecom site on CRAN
To install the RForcecom, type the command from your R console.
install.packages("RForcecom")
Source code is available at github.