{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/rstanarm/issues/244","repository_url":"https://api.github.com/repos/stan-dev/rstanarm","labels_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/244/comments","events_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/244/events","html_url":"https://github.com/stan-dev/rstanarm/issues/244","id":284302954,"number":244,"title":"Error in if (is.mer(x) && x$stan_function != \"stan_gamm4\")","user":{"login":"paul-buerkner","id":12938496,"avatar_url":"https://avatars3.githubusercontent.com/u/12938496?v=4","gravatar_id":"","url":"https://api.github.com/users/paul-buerkner","html_url":"https://github.com/paul-buerkner","followers_url":"https://api.github.com/users/paul-buerkner/followers","following_url":"https://api.github.com/users/paul-buerkner/following{/other_user}","gists_url":"https://api.github.com/users/paul-buerkner/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-buerkner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-buerkner/subscriptions","organizations_url":"https://api.github.com/users/paul-buerkner/orgs","repos_url":"https://api.github.com/users/paul-buerkner/repos","events_url":"https://api.github.com/users/paul-buerkner/events{/privacy}","received_events_url":"https://api.github.com/users/paul-buerkner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-12-23T12:00:23Z","updated_at":"2018-03-22T21:14:59Z","closed_at":null,"author_association":"NONE","body":"While investigating some differences between brms and rstanarm mentioned on brms-users by Travis Riddle (https://groups.google.com/forum/#!topic/brms-users/gj5-NvAUlEU), I loaded a stanreg object fitted with an old version of rstanarm and tried to summarize it using the newly released version 2.17.2, which resulted in\r\n\r\n```R\r\n> print(m.rstanarm)\r\nError in if (is.mer(x) && x$stan_function != \"stan_gamm4\") return(formula_mer(x,  : \r\n  missing value where TRUE/FALSE needed\r\n```\r\n\r\nI am almost sure having seen `x$stan_function != \"stan_gamm4\"` to be added in a recent commit of yours somewhere, but apparently, older stanreg object so not have a `stan_functions` slot. \r\n\r\nI am not sure where you store the version number with which the model was fitted, but you can download the model yourself here: https://drive.google.com/file/d/1qGYQOWb6zNaUDJbRzEsEan_YD35GSlRx/view\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stan-dev/rstanarm/issues/comments/375459839","html_url":"https://github.com/stan-dev/rstanarm/issues/244#issuecomment-375459839","issue_url":"https://api.github.com/repos/stan-dev/rstanarm/issues/244","id":375459839,"user":{"login":"paul-buerkner","id":12938496,"avatar_url":"https://avatars3.githubusercontent.com/u/12938496?v=4","gravatar_id":"","url":"https://api.github.com/users/paul-buerkner","html_url":"https://github.com/paul-buerkner","followers_url":"https://api.github.com/users/paul-buerkner/followers","following_url":"https://api.github.com/users/paul-buerkner/following{/other_user}","gists_url":"https://api.github.com/users/paul-buerkner/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-buerkner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-buerkner/subscriptions","organizations_url":"https://api.github.com/users/paul-buerkner/orgs","repos_url":"https://api.github.com/users/paul-buerkner/repos","events_url":"https://api.github.com/users/paul-buerkner/events{/privacy}","received_events_url":"https://api.github.com/users/paul-buerkner/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T21:14:58Z","updated_at":"2018-03-22T21:14:58Z","author_association":"NONE","body":"just write isTRUE(x$stan_function != \"stan_gamm4\")\n\nJonah Gabry <notifications@github.com> schrieb am Do., 22. März 2018, 21:54:\n\n> Working on the next release of rstanarm and going through open issue and\n> just noticed I missed this issue before. I agree we should try to fix this\n> somehow. Or at least throw an error telling people to manually add\n> stan_function to their object.\n>\n> @tjmahr <https://github.com/tjmahr> that’s exactly what I initially did\n> but scrapped it when I ran into the same thing you noticed.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/stan-dev/rstanarm/issues/244#issuecomment-375454140>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AMVtAC-j3Uik2LOy6JUsRwUt-hOP4e9iks5thA95gaJpZM4RLpr6>\n> .\n>\n"}}
{"actor":{"display_login":"paul-buerkner"}}