windows - Reading MS Access (.mdb, .accdb) into R; Mac to PC conversion -
i working on program pulls data out of .mdb , .accdb files , creates appropriate tables in r.
my working program on mac looks this:
library(hmisc) p <- '/users/josh/desktop/directory/' mdbfilename <- 'x.mdb' mdbconcat <- paste(p, mdbfilename, sep = "") mdb <- mdb.get(mdbconcat) mdbnames <- data.frame(mdb.get(mdbconcat, tables = true)) list2env(mdb, .globalenv) accdbfilename <- 'y.accdb' accdbconcat <- paste(p, accdbfilename, sep = '') accdb <- mdb.get(accdbconcat) accdbnames <- data.frame(mdb.get(accdbconcat, tables = true)) list2env(accdb, .globalenv)
this works fine on mac, on pc i'm developing for, error message:
error in system(paste("mdb-tables -1", file), intern = true) : 'mdb-tables' not found
i've thought lot using rodbc
, program allows me have tables arranged in way subsequent querying , dplyr
functions work. there way these function work on windows machine?
Comments
Post a Comment