{"action":"opened","issue":{"url":"https://api.github.com/repos/nimble-dev/nimble/issues/678","repository_url":"https://api.github.com/repos/nimble-dev/nimble","labels_url":"https://api.github.com/repos/nimble-dev/nimble/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/nimble-dev/nimble/issues/678/comments","events_url":"https://api.github.com/repos/nimble-dev/nimble/issues/678/events","html_url":"https://github.com/nimble-dev/nimble/issues/678","id":304409742,"number":678,"title":"enhance functionality around use of 'value' in distributional specification","user":{"login":"paciorek","id":2501598,"avatar_url":"https://avatars2.githubusercontent.com/u/2501598?v=4","gravatar_id":"","url":"https://api.github.com/users/paciorek","html_url":"https://github.com/paciorek","followers_url":"https://api.github.com/users/paciorek/followers","following_url":"https://api.github.com/users/paciorek/following{/other_user}","gists_url":"https://api.github.com/users/paciorek/gists{/gist_id}","starred_url":"https://api.github.com/users/paciorek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paciorek/subscriptions","organizations_url":"https://api.github.com/users/paciorek/orgs","repos_url":"https://api.github.com/users/paciorek/repos","events_url":"https://api.github.com/users/paciorek/events{/privacy}","received_events_url":"https://api.github.com/users/paciorek/received_events","type":"User","site_admin":false},"labels":[{"id":106487468,"url":"https://api.github.com/repos/nimble-dev/nimble/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-12T15:04:55Z","updated_at":"2018-03-12T15:04:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'd like to do this with dCRP (as it needs 'size' to be able to do simulation), but it fails because it lifts length(value) and creates: `length(value[1])` rather than inserting the LHS variable name.\r\n\r\n```\r\nregisterDistributions(list(\r\n    dCRP = list(\r\n        BUGSdist = 'dCRP(conc)',\r\n        Rdist = 'dCRP(conc, size = length(value))',\r\n        discrete = TRUE,\r\n        range = c(1, Inf),\r\n        types = c('value = double(1)')\r\n    )\r\n))\r\n```\r\n\r\nFor now we are forcing users to provide 'size', e.g.,\r\n```\r\nxi[1:10] ~ dCRP(conc, size = 10)\r\n```"}}
{"actor":{"display_login":"paciorek"}}