{"action":"created","issue":{"url":"https://api.github.com/repos/osmdatar/osmdata/issues/9","repository_url":"https://api.github.com/repos/osmdatar/osmdata","labels_url":"https://api.github.com/repos/osmdatar/osmdata/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/osmdatar/osmdata/issues/9/comments","events_url":"https://api.github.com/repos/osmdatar/osmdata/issues/9/events","html_url":"https://github.com/osmdatar/osmdata/issues/9","id":190395172,"number":9,"title":"Error message when printing empty osmdata object","user":{"login":"Robinlovelace","id":1825120,"avatar_url":"https://avatars.githubusercontent.com/u/1825120?v=3","gravatar_id":"","url":"https://api.github.com/users/Robinlovelace","html_url":"https://github.com/Robinlovelace","followers_url":"https://api.github.com/users/Robinlovelace/followers","following_url":"https://api.github.com/users/Robinlovelace/following{/other_user}","gists_url":"https://api.github.com/users/Robinlovelace/gists{/gist_id}","starred_url":"https://api.github.com/users/Robinlovelace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robinlovelace/subscriptions","organizations_url":"https://api.github.com/users/Robinlovelace/orgs","repos_url":"https://api.github.com/users/Robinlovelace/repos","events_url":"https://api.github.com/users/Robinlovelace/events{/privacy}","received_events_url":"https://api.github.com/users/Robinlovelace/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T18:58:06Z","updated_at":"2016-11-18T20:09:59Z","closed_at":"2016-11-18T20:09:59Z","body":"Example:\r\n\r\n```r\r\norigins = dl_origins(bb)\r\nq = osmdata::opq(bbox = bb) %>% \r\n  osmdata::add_feature(\"place\", \"*\")\r\norigins = osmdata::overpass_query(q)\r\norigins\r\n```\r\n```\r\n$osm_lines\r\nError in signif(sapply(coordinates(x), function(x) x[[1]][1, ]), digits = digits) : \r\n  non-numeric argument to mathematical function\r\n```\r\n\r\nIt's probably not a meaningful query but think the error message could be a little more informative at least!"},"comment":{"url":"https://api.github.com/repos/osmdatar/osmdata/issues/comments/261629798","html_url":"https://github.com/osmdatar/osmdata/issues/9#issuecomment-261629798","issue_url":"https://api.github.com/repos/osmdatar/osmdata/issues/9","id":261629798,"user":{"login":"mpadge","id":6697851,"avatar_url":"https://avatars.githubusercontent.com/u/6697851?v=3","gravatar_id":"","url":"https://api.github.com/users/mpadge","html_url":"https://github.com/mpadge","followers_url":"https://api.github.com/users/mpadge/followers","following_url":"https://api.github.com/users/mpadge/following{/other_user}","gists_url":"https://api.github.com/users/mpadge/gists{/gist_id}","starred_url":"https://api.github.com/users/mpadge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpadge/subscriptions","organizations_url":"https://api.github.com/users/mpadge/orgs","repos_url":"https://api.github.com/users/mpadge/repos","events_url":"https://api.github.com/users/mpadge/events{/privacy}","received_events_url":"https://api.github.com/users/mpadge/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T20:09:59Z","updated_at":"2016-11-18T20:09:59Z","body":"Thanks Robin, but that's one i beat you to [29 days earlier it seems](https://github.com/osmdatar/osmdata/issues/4), and simply requires extending [these lines](https://github.com/osmdatar/osmdata/blob/master/R/osmdata-class.R#L33-L35) with an `else` (`== is.null`). I've been a bit pressed for time to work on this lately, but intend to find more asap. First task is nevertheless hard-coding construction of `sf` objects (that is, without a direct `sf` dependency and all that that entails), but that's proving a little time consuming - i'm trying to do it 'properly', by comparing built sizes with an without `sf` dependency blah blah ... i'll get on to it in the next coupla weeks."}}
{"actor":{"display_login":"mpadge"}}