vos_odbcinst {virtuoso} | R Documentation |
Configure the ODBC Driver for Virtuoso
Description
ODBC uses an odbcinst.ini
file to point ODBC at the library required
to drive any given database. This function helps us automatically
locate the driver library on different operating systems and configure
the odbcinst appropriately for each OS.
Usage
vos_odbcinst(
system_odbcinst = find_odbcinst(),
local_odbcinst = odbcinst_path()
)
Arguments
system_odbcinst |
Path to the system |
local_odbcinst |
Path to the local odbcinst we should use. |
Details
This function is called automatically by vos_install()
and thus
does not usually need to be called by the user. Users can also manually
configure ODBC as outlined in
https://github.com/r-dbi/odbc#dsn-configuration-files.
This is merely a convenience function automating that process on most
systems.
Value
the path to the odbcinst file that is created or modified.
Examples
## Configures ODBC and returns silently on success.
vos_odbcinst()
## see where the inst file is located:
inst <- vos_odbcinst()
inst