I also need to be able to directly
call the database from R
I suggest setting up MySQL with RMySQL interface.
Once the DB connection is open, you can query the database and get the the data into R, example:
# Run an SQL statement by creating first a resultSet object
rs <- dbSendQuery(con, statement = paste(
"SELECT w.laser_id, w.wavelength, p.cut_off",
"FROM WL w, PURGE P",
"WHERE w.laser_id = p.laser_id",
"SORT BY w.laser_id")
# we now fetch records from the resultSet into a data.frame
data <- fetch(rs, n = -1) # extract all rows
RMySQL: R interface to the MySQL database
Database interface and MySQL driver
for R. This version complies with the
database interface definition as
implemented in the package DBI 0.2-2.
MySQL Database:
Available for all the platforms you cited in the question, and more, download here.