{"action":"created","issue":{"url":"https://api.github.com/repos/r-spatial/sf/issues/673","repository_url":"https://api.github.com/repos/r-spatial/sf","labels_url":"https://api.github.com/repos/r-spatial/sf/issues/673/labels{/name}","comments_url":"https://api.github.com/repos/r-spatial/sf/issues/673/comments","events_url":"https://api.github.com/repos/r-spatial/sf/issues/673/events","html_url":"https://github.com/r-spatial/sf/issues/673","id":305310418,"number":673,"title":"Cannot open data source","user":{"login":"allthesignals","id":5004319,"avatar_url":"https://avatars2.githubusercontent.com/u/5004319?v=4","gravatar_id":"","url":"https://api.github.com/users/allthesignals","html_url":"https://github.com/allthesignals","followers_url":"https://api.github.com/users/allthesignals/followers","following_url":"https://api.github.com/users/allthesignals/following{/other_user}","gists_url":"https://api.github.com/users/allthesignals/gists{/gist_id}","starred_url":"https://api.github.com/users/allthesignals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allthesignals/subscriptions","organizations_url":"https://api.github.com/users/allthesignals/orgs","repos_url":"https://api.github.com/users/allthesignals/repos","events_url":"https://api.github.com/users/allthesignals/events{/privacy}","received_events_url":"https://api.github.com/users/allthesignals/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-14T20:08:11Z","updated_at":"2018-03-14T20:13:52Z","closed_at":null,"author_association":"NONE","body":"I want to read a Shapefile so I can do some analysis on it. This seems like an OGR problem, but I'm not sure how to troubleshoot. \r\n\r\nI'm on MacOS.\r\n\r\nError:\r\n```R\r\nCannot open data source \r\nError in CPL_read_ogr(dsn, layer, as.character(options), quiet, type,  : \r\n  Open failed.\r\n```\r\n\r\nCode:\r\n```R\r\nfname <- system.file(\"data/tracts/RegionalLabs_CensusTracts_withData.shp\", package=\"sf\")\r\nfile.exists(\"data/tracts/RegionalLabs_CensusTracts_withData.shp\") # TRUE\r\nnc <- st_read(fname) # Cannot open data source\r\n```\r\n\r\nIs there a way to test whether the other global dependencies like GDAL are set up correctly?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/r-spatial/sf/issues/comments/373159165","html_url":"https://github.com/r-spatial/sf/issues/673#issuecomment-373159165","issue_url":"https://api.github.com/repos/r-spatial/sf/issues/673","id":373159165,"user":{"login":"edzer","id":520851,"avatar_url":"https://avatars1.githubusercontent.com/u/520851?v=4","gravatar_id":"","url":"https://api.github.com/users/edzer","html_url":"https://github.com/edzer","followers_url":"https://api.github.com/users/edzer/followers","following_url":"https://api.github.com/users/edzer/following{/other_user}","gists_url":"https://api.github.com/users/edzer/gists{/gist_id}","starred_url":"https://api.github.com/users/edzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edzer/subscriptions","organizations_url":"https://api.github.com/users/edzer/orgs","repos_url":"https://api.github.com/users/edzer/repos","events_url":"https://api.github.com/users/edzer/events{/privacy}","received_events_url":"https://api.github.com/users/edzer/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T20:13:52Z","updated_at":"2018-03-14T20:13:52Z","author_association":"OWNER","body":"Are the other files in the same directory (same name, extensions .prj, .shp, .dbf, .shx)?"}}
{"actor":{"display_login":"edzer"}}