title: Insert R DataFrame into SQL Server Table
body: <p>I have been stuck on this for a couple days now...I cant find what the issue could be.  I am using R in Spotfire.  I am trying to insert the results of a dataframe into a sql server 2014 table.  This is an example of what I am using:</p>
  
  <pre><code>install.packages("ODBC")
  install.packages("DBI")
  
  
  library(DBI)
  library(odbc)
  
  con &lt;- dbConnect(odbc(),
               Driver = "SQL Server",
               Server = "ServerName",
               Database = "DatabaseName",
               UID = "UserName",
               PWD = "Password")
  dbWriteTable(conn = con, 
           name = "SQlServerTableDestinationName", 
           value = Datatable)
  </code></pre>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>TIBCO Enterprise Runtime for R returned an error: 'Error in
    .loadNamespaceImpl(package, path, keep.source, partial) : error
    executing useDynLib for dynamic library 'rlang' from package 'rlang'
    loaded from P:/TERR/x86_64-pc-windows-library/4.2 : Error in
    library.dynam(chname = chname, package = package, lib.loc = ... :
    Foreign binary rlang could not be loaded'.</p>
  </blockquote>
  
  <p>Thank you!</p>