{"action":"opened","issue":{"url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/325","repository_url":"https://api.github.com/repos/PredictiveEcology/SpaDES","labels_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/325/comments","events_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/325/events","html_url":"https://github.com/PredictiveEcology/SpaDES/issues/325","id":194483923,"number":325,"title":"defineParameter does not handle arithmetic with time(sim), start(sim) etc.","user":{"login":"eliotmcintire","id":1100507,"avatar_url":"https://avatars.githubusercontent.com/u/1100507?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotmcintire","html_url":"https://github.com/eliotmcintire","followers_url":"https://api.github.com/users/eliotmcintire/followers","following_url":"https://api.github.com/users/eliotmcintire/following{/other_user}","gists_url":"https://api.github.com/users/eliotmcintire/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotmcintire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotmcintire/subscriptions","organizations_url":"https://api.github.com/users/eliotmcintire/orgs","repos_url":"https://api.github.com/users/eliotmcintire/repos","events_url":"https://api.github.com/users/eliotmcintire/events{/privacy}","received_events_url":"https://api.github.com/users/eliotmcintire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-09T00:39:06Z","updated_at":"2016-12-09T00:39:06Z","closed_at":null,"body":"\r\n```\r\n           browser()\r\n\r\n            if (!is.null(attr(default, \"unit\"))) {\r\n              browser()\r\n              sim <- get(\"sim\", envir = sys.frames()[grep(sys.calls(), pattern=\"^defineModule\")][[1]])\r\n              eval(parse(text = \"convertTimeunit(deparse(substitute(default)), 'seconds', sim@.envir)\"), envir=sim@.envir )\r\n              eventTimeInSeconds <-\r\n                convertTimeunit(default, \"seconds\", sim@.envir) %>%\r\n                as.numeric()\r\n            }\r\n```\r\n"}}
{"actor":{"display_login":"eliotmcintire"}}