{"action":"created","issue":{"url":"https://api.github.com/repos/Rexamine/stringi/issues/168","labels_url":"https://api.github.com/repos/Rexamine/stringi/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/Rexamine/stringi/issues/168/comments","events_url":"https://api.github.com/repos/Rexamine/stringi/issues/168/events","html_url":"https://github.com/Rexamine/stringi/issues/168","id":89920905,"number":168,"title":"Build should fail when download of icudt fails","user":{"login":"jeroenooms","id":216319,"avatar_url":"https://avatars.githubusercontent.com/u/216319?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenooms","html_url":"https://github.com/jeroenooms","followers_url":"https://api.github.com/users/jeroenooms/followers","following_url":"https://api.github.com/users/jeroenooms/following{/other_user}","gists_url":"https://api.github.com/users/jeroenooms/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenooms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenooms/subscriptions","organizations_url":"https://api.github.com/users/jeroenooms/orgs","repos_url":"https://api.github.com/users/jeroenooms/repos","events_url":"https://api.github.com/users/jeroenooms/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenooms/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Rexamine/stringi/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"gagolews","id":3193581,"avatar_url":"https://avatars.githubusercontent.com/u/3193581?v=3","gravatar_id":"","url":"https://api.github.com/users/gagolews","html_url":"https://github.com/gagolews","followers_url":"https://api.github.com/users/gagolews/followers","following_url":"https://api.github.com/users/gagolews/following{/other_user}","gists_url":"https://api.github.com/users/gagolews/gists{/gist_id}","starred_url":"https://api.github.com/users/gagolews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagolews/subscriptions","organizations_url":"https://api.github.com/users/gagolews/orgs","repos_url":"https://api.github.com/users/gagolews/repos","events_url":"https://api.github.com/users/gagolews/events{/privacy}","received_events_url":"https://api.github.com/users/gagolews/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Rexamine/stringi/milestones/5","html_url":"https://github.com/Rexamine/stringi/milestones/stringi-0.5","labels_url":"https://api.github.com/repos/Rexamine/stringi/milestones/5/labels","id":903480,"number":5,"title":"stringi-0.5","description":"","creator":{"login":"gagolews","id":3193581,"avatar_url":"https://avatars.githubusercontent.com/u/3193581?v=3","gravatar_id":"","url":"https://api.github.com/users/gagolews","html_url":"https://github.com/gagolews","followers_url":"https://api.github.com/users/gagolews/followers","following_url":"https://api.github.com/users/gagolews/following{/other_user}","gists_url":"https://api.github.com/users/gagolews/gists{/gist_id}","starred_url":"https://api.github.com/users/gagolews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagolews/subscriptions","organizations_url":"https://api.github.com/users/gagolews/orgs","repos_url":"https://api.github.com/users/gagolews/repos","events_url":"https://api.github.com/users/gagolews/events{/privacy}","received_events_url":"https://api.github.com/users/gagolews/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"open","created_at":"2014-12-14T20:32:48Z","updated_at":"2015-06-21T15:21:26Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-06-21T14:51:57Z","updated_at":"2015-06-21T15:22:18Z","closed_at":"2015-06-21T15:21:26Z","body":"One reason why people have been getting [`The requested ICU resource file cannot be found`](https://github.com/hadley/stringr/issues/68) is because they are using the `r-cran-stringi` package. This package does not work because launchpad builds all packages offline, and therefore downloading `icudt` fails. From the [build log](https://launchpad.net/~marutter/+archive/ubuntu/c2d4u/+build/6646111):\r\n\r\n```\r\nmake[1]: Leaving directory `/build/buildd/stringi-0.4-1/src'\r\nmake[1]: Entering directory `/build/buildd/stringi-0.4-1/src'\r\nmake[1]: Leaving directory `/build/buildd/stringi-0.4-1/src'\r\ninstalling via 'install.libs.R' to /build/buildd/stringi-0.4-1/debian/r-cran-stringi/usr/lib/R/site-library/stringi\r\ndownloading ICU data library (icudt)\r\nthe files will be extracted to: /build/buildd/stringi-0.4-1/debian/r-cran-stringi/usr/lib/R/site-library/stringi/libs\r\nno icudt in a local repo\r\ntrying URL 'http://static.rexamine.com/packages/icudt52l.zip'\r\nWarning in download.file(href, outfname, mode = \"wb\") :\r\n  unable to resolve 'static.rexamine.com'\r\nError in download.file(href, outfname, mode = \"wb\"): cannot open URL 'http://static.rexamine.com/packages/icudt52l.zip'\r\n\r\ntrying URL 'http://www.mini.pw.edu.pl/~gagolews/stringi/icudt52l.zip'\r\nWarning in download.file(href, outfname, mode = \"wb\") :\r\n  unable to resolve 'www.mini.pw.edu.pl'\r\nError in download.file(href, outfname, mode = \"wb\"): cannot open URL 'http://www.mini.pw.edu.pl/~gagolews/stringi/icudt52l.zip'\r\n\r\ntrying URL 'http://www.ibspan.waw.pl/~gagolews/stringi/icudt52l.zip'\r\nWarning in download.file(href, outfname, mode = \"wb\") :\r\n  unable to resolve 'www.ibspan.waw.pl'\r\nError in download.file(href, outfname, mode = \"wb\"): cannot open URL 'http://www.ibspan.waw.pl/~gagolews/stringi/icudt52l.zip'\r\n\r\nicudt download failed\r\n** R\r\n** inst\r\n** preparing package for lazy loading\r\n** help\r\n*** installing help indices\r\n** building package indices\r\n** testing if installed package can be loaded\r\n* DONE (stringi)\r\n```\r\n\r\nThis problem is now partially fixed for ubuntu because we can use the system `libicu-dev` when available, but for other platforms this is still problematic. It seems to me that the installation should fail when the download fails to prevent installation and shipping of non working packages."},"comment":{"url":"https://api.github.com/repos/Rexamine/stringi/issues/comments/113912987","html_url":"https://github.com/Rexamine/stringi/issues/168#issuecomment-113912987","issue_url":"https://api.github.com/repos/Rexamine/stringi/issues/168","id":113912987,"user":{"login":"gagolews","id":3193581,"avatar_url":"https://avatars.githubusercontent.com/u/3193581?v=3","gravatar_id":"","url":"https://api.github.com/users/gagolews","html_url":"https://github.com/gagolews","followers_url":"https://api.github.com/users/gagolews/followers","following_url":"https://api.github.com/users/gagolews/following{/other_user}","gists_url":"https://api.github.com/users/gagolews/gists{/gist_id}","starred_url":"https://api.github.com/users/gagolews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagolews/subscriptions","organizations_url":"https://api.github.com/users/gagolews/orgs","repos_url":"https://api.github.com/users/gagolews/repos","events_url":"https://api.github.com/users/gagolews/events{/privacy}","received_events_url":"https://api.github.com/users/gagolews/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T15:22:18Z","updated_at":"2015-06-21T15:22:18Z","body":"@jeroenooms fixed now"}}