Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1000459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:30:57+00:00 2026-05-16T07:30:57+00:00

Installing the RODBC package on Ubuntu is a bit of a kludge. First I

  • 0

Installing the RODBC package on Ubuntu is a bit of a kludge. First I learned to install the following:

$ sudo apt-get install r-cran-rodbc

That wasn’t good enough as the package was still looking for header files. I solved this issue by:

$ sudo apt-get install unixodbc-dev

Good, RODBC installed properly on the Ubuntu machine. But when I try to run the following script:

## import excel file from Dropbox

require("RODBC")

channel <- odbcConnectExcel("~/Dropbox/DATA/SAMPLE/petro.xls")

petro <- sqlFetch (channel, "weekly")

odbcClose(channel)

str(petro)
head(petro)

I get an error thrown that function odbcConnectExcel not found. I checked the case of each letter, making sure it was not a simple typo. Nope. Then I ran this same script on a Windows R installation (file path different, of course) and the script works.

Any idea of why Ubuntu R installation cannot find the odbcConnectExcel function and how I can get this to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:30:58+00:00Added an answer on May 16, 2026 at 7:30 am

    That functionality is available where Excel is available. In other words: not on Ubuntu.

    For reference, from the R Data Import / Export manual (with my highlighting):

    4.3.2 Package RODBC

    Package RODBC on CRAN provides an
    interface to database sources
    supporting an ODBC interface. This is
    very widely available, and allows the
    same R code to access different
    database systems. RODBC runs on
    Unix/Linux, Windows and Mac OS X, and
    almost all database systems provide
    support for ODBC. We have tested
    Microsoft SQL Server, Access, MySQL,
    PostgreSQL, Oracle and IBM DB2 on
    Windows and MySQL, Oracle, PostgreSQL
    and SQLite on Linux.

    ODBC is a client-server system, and we
    have happily connected to a DBMS
    running on a Unix server from a
    Windows client, and vice versa.

    On Windows ODBC support is normally
    installed, and current versions are
    available from
    http://www.microsoft.com/data/odbc/ as
    part of MDAC. On Unix/Linux you will
    need an ODBC Driver Manager such as
    unixODBC (http://www.unixODBC.org) or
    iOBDC (http://www.iODBC.org: this is
    pre-installed in Mac OS X) and an
    installed driver for your database
    system.

    Windows provides drivers not just for
    DBMSs but also for Excel (.xls)
    spreadsheets,
    DBase (.dbf) files and
    even text files. (The named
    applications do not need to be
    installed. Which file formats are
    supported depends on the the versions
    of the drivers.) There are versions
    for Excel 2007 and Access 2007 (go to
    http://download.microsoft.com, and
    search for Office ODBC, which will
    lead to AccessDatabaseEngine.exe), the
    `2007 Office System Driver’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When installing Selenium using the following command line: pip install -U selenium I get
When installing Apache on Ubuntu 11.10, I get the following error: configure: error: APR
After installing PIL with pip install PIL under Ubuntu 11.10, the summary tells me
installing node-v0.4.8 on mac os x leopard, I get the following error: ../src/node_crypto.cc:2917: error:
After installing VMware Server I get the following error when I try to access
Installing egit on indigo im given following options : I've just checked 'Eclipse Egit'
When installing git for windows, a user is asked to select from following 3
When installing Windows SDK v6.1, following the chromium instructions ( http://dev.chromium.org/developers/how-tos/build-instructions-windows ) I run
After installing and configuring cluetip, i realized that the urls you hover over to
After installing and setting up node.js on my development VM running Ubuntu 11.10, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.