Using R.NET.Community in .NET Core 2.0 Preview 1 : <p>For a while, I've been hoping to use <a href="https://www.nuget.org/packages/R.NET.Community/" rel="noreferrer">R.NET.Community</a> in a .NET Core app. Obviously though with the NuGet package not having been ported to .NET Core, that's been a non-starter. However, with the <a href="https://blogs.msdn.microsoft.com/dotnet/2017/05/10/announcing-net-core-2-0-preview-1/" rel="noreferrer">.NET Core 2.0 Preview 1 announcement</a> that you can reference .NET Framework libraries from .NET Core, I gave this another go:</p>

<pre><code>using RDotNet;

namespace RDotNetCore2
{
    class Program
    {
        static void Main(string[] args)
        {
            REngine.SetEnvironmentVariables();
            var engine = REngine.GetInstance();
        }
    }
}
</code></pre>

<p>Creating this as a .NET Core 2.0 app in the new Visual Studio 2017 Preview, this at least gets as far as compiling and running, but errors at the <code>GetInstance</code> call:</p>

<blockquote>
  <p>Could not load file or assembly 'System.Security.Permissions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.</p>
</blockquote>

<p>Is there anything I can do to fix this, or this just one of those bits which isn't supported in .NET Core (which I suspect may be likely due to the fact that CAS isn't supported on .NET Core)?</p>
