I am trying to write an open data package that reads New York State education data into R. That data are provided as an Access database.
I want to write a function that downloads, reads, and imports those files, and I want it to be supported across platforms. The existing approach suggests installing a 32-bit version of R, which does not fit the bill for programmatic access.
A tour of #RStats suggests that this is a common pain point (1, 2, 3, 4)
On OS X/Linux, you can use mdb.get
from the Hmisc
package, provided that you have a third party library called mdb-tools
. But this seems to be of little help for Windows.
An accepted answer will read the .mdb
file linked above into R across Windows, OS X, and Linux.
.mdb
file is a single-table with what looks like the exact same data as the plain text and highly cross-platform.tab
file. – Housewifely.tab
in the past year. If you look at data.nysed.gov/files/assessment/13-14/3-8-2013-14.zip for instance, you'll see that it's only a.mdb
. – EcumenicistDistance
package has also bumped into this problem. Not sure if the close vote is yours but if you could reconsider I would be grateful. – Ecumenicistif
is your friend. there's nothing wrong with wrapping platform specific solutions (i.e. RODBC for Windows andmdb.get()
for linux or macOS) inif
statements. Sometimes you actually have to work to get the data in. – Housewifely