I am trying to connect R with SQL server 2016, when I tried RevoScaleR_SqlServer_GettingStarted.R script or my own script I got the following error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ODBC Error in SQLDisconnect Could not open data source. Error in doTryCatch(return(expr), name, parentenv, handler) : Could not open data source.
Note: I can execute R script in SQL management studio. I already configured Microsoft ODBC Driver for SQL Server Version 13.00.1300 in ODBC Data Sources (64-bit).
probably you should create a txt file in your r wd and save your connection string in it after that you should use readLines("your connection string.txt") to read your connection string and use it in your code worked for me..... FYI you should disable blocking R from you windows firewall with advanced security....