{"action":"closed","issue":{"url":"https://api.github.com/repos/BlueMountainCapital/FSharpRProvider/issues/164","labels_url":"https://api.github.com/repos/BlueMountainCapital/FSharpRProvider/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/BlueMountainCapital/FSharpRProvider/issues/164/comments","events_url":"https://api.github.com/repos/BlueMountainCapital/FSharpRProvider/issues/164/events","html_url":"https://github.com/BlueMountainCapital/FSharpRProvider/issues/164","id":120575574,"number":164,"title":"Strange difference between fsx script and fs program ","user":{"login":"mae1st0rm","id":14308690,"avatar_url":"https://avatars.githubusercontent.com/u/14308690?v=3","gravatar_id":"","url":"https://api.github.com/users/mae1st0rm","html_url":"https://github.com/mae1st0rm","followers_url":"https://api.github.com/users/mae1st0rm/followers","following_url":"https://api.github.com/users/mae1st0rm/following{/other_user}","gists_url":"https://api.github.com/users/mae1st0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/mae1st0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mae1st0rm/subscriptions","organizations_url":"https://api.github.com/users/mae1st0rm/orgs","repos_url":"https://api.github.com/users/mae1st0rm/repos","events_url":"https://api.github.com/users/mae1st0rm/events{/privacy}","received_events_url":"https://api.github.com/users/mae1st0rm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-05T17:48:00Z","updated_at":"2015-12-09T14:18:33Z","closed_at":"2015-12-09T14:18:33Z","body":"Hello! i faced strange situation: if i put code in fsx script it runs ok,\r\nbut if i put code inside Console application it fails for some reason:\r\n```FSharp\r\nopen System\r\nopen RDotNet\r\nopen RProvider\r\nopen RProvider.graphics\r\n\r\nlet eval (text:string) =\r\n  R.eval(R.parse(namedParams [\"text\", text])) \r\nlet code = \r\n    @\"\r\n    x <- 3.1415\r\n    sin(x)\r\n    \"\r\nlet f () = code |> eval\r\nlet engine = REngine.GetInstance()\r\n// this works fine\r\nlet y0 = engine.Evaluate(code).GetValue<float>()\r\n// this fails in Console app, but works in script - why?\r\nlet y1 = f().GetValue<float>()\r\nConsole.ReadLine() |> ignore\r\n```\r\nSome details: R version 3.2.0, Win7x64, VS2015, RProvider 1.1.15\r\n"}}