{"action":"created","issue":{"url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/issues/54","repository_url":"https://api.github.com/repos/DeclareDesign/DeclareDesign","labels_url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/issues/54/comments","events_url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/issues/54/events","html_url":"https://github.com/DeclareDesign/DeclareDesign/pull/54","id":274283861,"number":54,"title":"Make design templates work with shiny","user":{"login":"nfultz","id":418638,"avatar_url":"https://avatars2.githubusercontent.com/u/418638?v=4","gravatar_id":"","url":"https://api.github.com/users/nfultz","html_url":"https://github.com/nfultz","followers_url":"https://api.github.com/users/nfultz/followers","following_url":"https://api.github.com/users/nfultz/following{/other_user}","gists_url":"https://api.github.com/users/nfultz/gists{/gist_id}","starred_url":"https://api.github.com/users/nfultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfultz/subscriptions","organizations_url":"https://api.github.com/users/nfultz/orgs","repos_url":"https://api.github.com/users/nfultz/repos","events_url":"https://api.github.com/users/nfultz/events{/privacy}","received_events_url":"https://api.github.com/users/nfultz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T19:55:10Z","updated_at":"2017-11-16T18:32:25Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/pulls/54","html_url":"https://github.com/DeclareDesign/DeclareDesign/pull/54","diff_url":"https://github.com/DeclareDesign/DeclareDesign/pull/54.diff","patch_url":"https://github.com/DeclareDesign/DeclareDesign/pull/54.patch"},"body":"This updates the design library vignettes to work with the [WIP DDinspector](https://github.com/DeclareDesign/shiny/blob/nfultz/builder_inspector/R/inspector.R) shiny applet and the [memoise caching mechanism](https://github.com/DeclareDesign/DDtools/blob/master/R/design_library.R) it uses.\r\n\r\nTo make this work, there are a couple key changes:\r\n\r\n  * template should be stored in a variable name `$(VIGNETTE_TOPIC)_template` so `regression_discontinuity_template` and not `rd_template`\r\n  * the design library generator loads the template straight out of the vignette-generated R script (\"R/regression_discontinuity_template.R\") in the DeclareDesign package via `source()`, so that file needs to be able to run start to finish - I added some guard rails to the vignette code to deal with missing intermediate files that they might generate and use - we do not need to save out `.RDS` copies of the templates, (it's already too confusing trying to match up code to RDS :( ). \r\n  * formal arguments on the template will be handed off to `expand.grid` and each combination will be pre-computed\r\n  * The first in the vector of arguments will be the default in the drop down in DDinspector \r\n  * right now DDinspector only supports numeric arguments, we can fix this in a later version\r\n   * the RDS files in vignette will be excluded from the package builds as per cran policy on large-ish files.\r\n\r\nI've also included a stub for two-way factorial designs if we want to include that in the demo.\r\n "},"comment":{"url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/issues/comments/345015474","html_url":"https://github.com/DeclareDesign/DeclareDesign/pull/54#issuecomment-345015474","issue_url":"https://api.github.com/repos/DeclareDesign/DeclareDesign/issues/54","id":345015474,"user":{"login":"graemeblair","id":3320015,"avatar_url":"https://avatars2.githubusercontent.com/u/3320015?v=4","gravatar_id":"","url":"https://api.github.com/users/graemeblair","html_url":"https://github.com/graemeblair","followers_url":"https://api.github.com/users/graemeblair/followers","following_url":"https://api.github.com/users/graemeblair/following{/other_user}","gists_url":"https://api.github.com/users/graemeblair/gists{/gist_id}","starred_url":"https://api.github.com/users/graemeblair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemeblair/subscriptions","organizations_url":"https://api.github.com/users/graemeblair/orgs","repos_url":"https://api.github.com/users/graemeblair/repos","events_url":"https://api.github.com/users/graemeblair/events{/privacy}","received_events_url":"https://api.github.com/users/graemeblair/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T18:32:25Z","updated_at":"2017-11-16T18:32:25Z","author_association":"OWNER","body":"terrific, thanks, this looks great."}}
{"actor":{"display_login":"graemeblair"}}