Full instructions on how to get SQL Server 2016 developer edition for free. This version includes the ability to run R, server-side, in your T-SQL code.
How to get the database engine, and all the other bits and pieces, like the Management and Visual Studio components here.