{"action":"opened","issue":{"url":"https://api.github.com/repos/bedatadriven/renjin/issues/345","repository_url":"https://api.github.com/repos/bedatadriven/renjin","labels_url":"https://api.github.com/repos/bedatadriven/renjin/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/bedatadriven/renjin/issues/345/comments","events_url":"https://api.github.com/repos/bedatadriven/renjin/issues/345/events","html_url":"https://github.com/bedatadriven/renjin/issues/345","id":269516113,"number":345,"title":"class(x)<-  \"integer\" should coerce x","user":{"login":"akbertram","id":454339,"avatar_url":"https://avatars2.githubusercontent.com/u/454339?v=4","gravatar_id":"","url":"https://api.github.com/users/akbertram","html_url":"https://github.com/akbertram","followers_url":"https://api.github.com/users/akbertram/followers","following_url":"https://api.github.com/users/akbertram/following{/other_user}","gists_url":"https://api.github.com/users/akbertram/gists{/gist_id}","starred_url":"https://api.github.com/users/akbertram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akbertram/subscriptions","organizations_url":"https://api.github.com/users/akbertram/orgs","repos_url":"https://api.github.com/users/akbertram/repos","events_url":"https://api.github.com/users/akbertram/events{/privacy}","received_events_url":"https://api.github.com/users/akbertram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-30T08:28:48Z","updated_at":"2017-10-30T08:28:48Z","closed_at":null,"author_association":"OWNER","body":"The `class(x)<-` function has additional behavior when the class is one of the \"implicit\" classes such as `character`, `integer`, `numeric`, etc. \r\n\r\nIn this case, its argument is coerced to the corresponding type. For example:\r\n\r\n```.R\r\nx <- 15.0\r\nclass(x) <- \"integer\"\r\nassertThat(x, identicalTo(15L))\r\n```\r\nNote that the \"numeric\" class is extra special: `x` is normally coerced to a double vector, unless `is.integer(x)` in which case it remains an integer.\r\n"}}
{"actor":{"display_login":"akbertram"}}