Reading data from 32-bit Access db using 64-bit R

前端 未结 1 1549
野性不改
野性不改 2021-01-29 02:44

System specs: 64-bit OS (Win7), 64-bit R (3.3.3), 32-bit MS Access (2016).

I have data in a 32-bit .accdb file and I want to read it into R. I tried this:



        
相关标签:
1条回答
  • 2021-01-29 03:02

    The access file itself knows nothing about bitness, its only about the client application and the bitness of the odbc driver:

    If your R is 64 bit, you need the 64bit ODBC driver for access and therefore also use the odbc manager for 64bit, which is C:\Windows\System32\odbcad32.exe (in Win7 64bit).

    While if your R is 32bit, you need the 32bit ODBC driver, located at C:\Windows\SysWOW64\odbcad32.exe.

    You can download the required Access Database Engine 2010 Redistributable from here: https://www.microsoft.com/en-US/download/details.aspx?id=13255

    So, download the 64 bit Access Database driver, create a 64bit DSN entry and you should be fine.

    0 讨论(0)
提交回复
热议问题