{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia-tutorial/issues/2","labels_url":"https://api.github.com/repos/JuliaLang/julia-tutorial/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia-tutorial/issues/2/comments","events_url":"https://api.github.com/repos/JuliaLang/julia-tutorial/issues/2/events","html_url":"https://github.com/JuliaLang/julia-tutorial/issues/2","id":116736495,"number":2,"title":"Code from Julia statistics tutorial gives errors in recent versions","user":{"login":"rubystallion","id":2557976,"avatar_url":"https://avatars.githubusercontent.com/u/2557976?v=3","gravatar_id":"","url":"https://api.github.com/users/rubystallion","html_url":"https://github.com/rubystallion","followers_url":"https://api.github.com/users/rubystallion/followers","following_url":"https://api.github.com/users/rubystallion/following{/other_user}","gists_url":"https://api.github.com/users/rubystallion/gists{/gist_id}","starred_url":"https://api.github.com/users/rubystallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubystallion/subscriptions","organizations_url":"https://api.github.com/users/rubystallion/orgs","repos_url":"https://api.github.com/users/rubystallion/repos","events_url":"https://api.github.com/users/rubystallion/events{/privacy}","received_events_url":"https://api.github.com/users/rubystallion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-13T09:57:26Z","updated_at":"2015-11-13T10:16:35Z","closed_at":null,"body":"I just tried out Julia 0.4.1 and followed the stats presentation. I ran the Pkg.add(\"...\") command for \"DataFrames\" (v0.6.10), \"Distributions\" (v0.8.7), \"GLM\" (v0.4.8) and \"RDatasets\" (v0.1.2). \r\nRunning the presentation's code gives multiple errors. For example I noticed I had to write \"RDatasets\" instead of \"RDataSets\" and form=dataset(\"datasets\",\"Formaldehyde\") instead of form=data(...). \r\nThe regression command fm=lm(:(optden ~ carb),form) fails with\r\nERROR: MethodError: `fit` has no method matching fit(::Type{GLM.LinearModel{T<:G\r\nLM.LinPred}}, ::Expr, ::DataFrames.DataFrame)\r\nThere is probably more code in the presentation that doesn't work any more; I only got this far."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia-tutorial/issues/comments/156387913","html_url":"https://github.com/JuliaLang/julia-tutorial/issues/2#issuecomment-156387913","issue_url":"https://api.github.com/repos/JuliaLang/julia-tutorial/issues/2","id":156387913,"user":{"login":"ViralBShah","id":744411,"avatar_url":"https://avatars.githubusercontent.com/u/744411?v=3","gravatar_id":"","url":"https://api.github.com/users/ViralBShah","html_url":"https://github.com/ViralBShah","followers_url":"https://api.github.com/users/ViralBShah/followers","following_url":"https://api.github.com/users/ViralBShah/following{/other_user}","gists_url":"https://api.github.com/users/ViralBShah/gists{/gist_id}","starred_url":"https://api.github.com/users/ViralBShah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViralBShah/subscriptions","organizations_url":"https://api.github.com/users/ViralBShah/orgs","repos_url":"https://api.github.com/users/ViralBShah/repos","events_url":"https://api.github.com/users/ViralBShah/events{/privacy}","received_events_url":"https://api.github.com/users/ViralBShah/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T10:16:35Z","updated_at":"2015-11-13T10:16:35Z","body":"I suspect this needs to be filed against GLM.jl."}}