{"action":"created","issue":{"url":"https://api.github.com/repos/jsta/ipdw/issues/5","repository_url":"https://api.github.com/repos/jsta/ipdw","labels_url":"https://api.github.com/repos/jsta/ipdw/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/jsta/ipdw/issues/5/comments","events_url":"https://api.github.com/repos/jsta/ipdw/issues/5/events","html_url":"https://github.com/jsta/ipdw/issues/5","id":163857759,"number":5,"title":"testthat warnings on raster object formation","user":{"login":"jsta","id":7844578,"avatar_url":"https://avatars.githubusercontent.com/u/7844578?v=3","gravatar_id":"","url":"https://api.github.com/users/jsta","html_url":"https://github.com/jsta","followers_url":"https://api.github.com/users/jsta/followers","following_url":"https://api.github.com/users/jsta/following{/other_user}","gists_url":"https://api.github.com/users/jsta/gists{/gist_id}","starred_url":"https://api.github.com/users/jsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsta/subscriptions","organizations_url":"https://api.github.com/users/jsta/orgs","repos_url":"https://api.github.com/users/jsta/repos","events_url":"https://api.github.com/users/jsta/events{/privacy}","received_events_url":"https://api.github.com/users/jsta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T14:00:18Z","updated_at":"2016-11-11T15:29:01Z","closed_at":"2016-11-11T15:29:01Z","body":"Testing blocks that call the raster::raster() function give the following warnings:\n\n> 1. raster should not given warning (@test-raster.R#37) - no non-missing arguments to min; returning Inf\n> 2. raster should not given warning (@test-raster.R#37) - no non-missing arguments to max; returning -Inf\n### Minimum Reproducible Example\n\n<details>\n<summary>\n\n minimum rep ex. </summary>\n\n\n\n``` r\ntest_that(\"raster should not given warning\", {\n    skip_on_cran()\n    skip_on_travis()\n    skip_on_appveyor()\n\n    m <- matrix(NA, 10, 10)\n    foobar <- raster::raster(m, xmn = 0, xmx = 10, ymn = 0, ymx = 10)\n    expect_s4_class(foobar, \"RasterLayer\")\n})\n```\n\n</details>\nThe error goes away if I use a non-NA value in my m object but I think that completely NA rasters should still be valid.\n"},"comment":{"url":"https://api.github.com/repos/jsta/ipdw/issues/comments/259981814","html_url":"https://github.com/jsta/ipdw/issues/5#issuecomment-259981814","issue_url":"https://api.github.com/repos/jsta/ipdw/issues/5","id":259981814,"user":{"login":"jsta","id":7844578,"avatar_url":"https://avatars.githubusercontent.com/u/7844578?v=3","gravatar_id":"","url":"https://api.github.com/users/jsta","html_url":"https://github.com/jsta","followers_url":"https://api.github.com/users/jsta/followers","following_url":"https://api.github.com/users/jsta/following{/other_user}","gists_url":"https://api.github.com/users/jsta/gists{/gist_id}","starred_url":"https://api.github.com/users/jsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsta/subscriptions","organizations_url":"https://api.github.com/users/jsta/orgs","repos_url":"https://api.github.com/users/jsta/repos","events_url":"https://api.github.com/users/jsta/events{/privacy}","received_events_url":"https://api.github.com/users/jsta/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T15:29:01Z","updated_at":"2016-11-11T15:29:01Z","body":"Solved by, f91103ccfe5b4d4e7accfb6d6630f99b4795d0f6 "}}
{"actor":{"display_login":"jsta"}}