SQL Server 2016 SP1 - Unable to execute R code
We ran into a number of problems when trying to configure R-Services, but we eventually got it working.  Please refer to the following link for the details.

Problem getting Sql Server 2016 R Services (In-Database) working