{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/stringr/issues/52","labels_url":"https://api.github.com/repos/hadley/stringr/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/hadley/stringr/issues/52/comments","events_url":"https://api.github.com/repos/hadley/stringr/issues/52/events","html_url":"https://github.com/hadley/stringr/issues/52","id":54750506,"number":52,"title":"check fails","user":{"login":"nachti","id":5793911,"avatar_url":"https://avatars.githubusercontent.com/u/5793911?v=3","gravatar_id":"","url":"https://api.github.com/users/nachti","html_url":"https://github.com/nachti","followers_url":"https://api.github.com/users/nachti/followers","following_url":"https://api.github.com/users/nachti/following{/other_user}","gists_url":"https://api.github.com/users/nachti/gists{/gist_id}","starred_url":"https://api.github.com/users/nachti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nachti/subscriptions","organizations_url":"https://api.github.com/users/nachti/orgs","repos_url":"https://api.github.com/users/nachti/repos","events_url":"https://api.github.com/users/nachti/events{/privacy}","received_events_url":"https://api.github.com/users/nachti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-19T11:01:24Z","updated_at":"2015-06-24T14:52:41Z","closed_at":null,"body":"Hi Hadley!\r\n\r\nTrying to implement my two little functions to `stringr` (as discussed per mail some time ago), I found the following problem checking the original version first:\r\nIf i build stringr using RStudio, everything works as expected, but the check fails throwing the following error:\r\n\r\n```\r\n==> roxygenize('.', roclets=c('rd', 'collate', 'namespace'))\r\n\r\n* checking for changes ... ERROR\r\n\r\nError in stri_replace_all_regex(string, pattern, replacement, vectorize_all = vec,  : \r\n  Missing closing bracket on a bracket expression. (U_REGEX_MISSING_CLOSE_BRACKET)\r\n```\r\n\r\nUsing the command line `R CMD check` fails with this output:\r\n\r\n```\r\n...\r\n* checking examples ... ERROR\r\nRunning examples in ‘stringr-Ex.R’ failed\r\nThe error most likely occurred in:\r\n\r\n> ### Name: case\r\n> ### Title: Convert case of a string.\r\n> ### Aliases: case str_to_lower str_to_title str_to_upper\r\n>\r\n> ### ** Examples\r\n>\r\n> dog <- \"The quick brown dog\"\r\n> str_to_upper(dog)\r\n[1] \"THE QUICK BROWN DOG\"\r\n> str_to_lower(dog)\r\n[1] \"the quick brown dog\"\r\n> str_to_title(dog)\r\nError in stri_trans_totitle(string, opts_brkiter = stri_opts_brkiter(locale = locale)) :\r\n  The requested ICU resource cannot be found. Possible problem: ICU data has not been downloaded yet. Call `stri_install_check()`. (U_MISSING_RESOURCE_ERROR)\r\nCalls: str_to_title -> stri_trans_totitle -> .Call\r\nExecution halted\r\n```\r\nStarting R to check the mentioned possible problem gives\r\n\r\n```\r\n> library(stringi)\r\n> stri_install_check()\r\nstringi_0.5.1; en_US.UTF-8; ICU4C 51.2; Unicode 6.2\r\nAll tests completed successfully.\r\n> sessionInfo()\r\nR version 3.1.1 (2014-07-10)\r\nPlatform: x86_64-suse-linux-gnu (64-bit)\r\n\r\nlocale:\r\n [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C\r\n [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8\r\n [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8\r\n [7] LC_PAPER=en_US.UTF-8       LC_NAME=C\r\n [9] LC_ADDRESS=C               LC_TELEPHONE=C\r\n[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C\r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base\r\n\r\nother attached packages:\r\n[1] stringi_0.5-1\r\n\r\nloaded via a namespace (and not attached):\r\n[1] tools_3.1.1\r\n```\r\n\r\nCheers,\r\nGerhard\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hadley/stringr/issues/comments/114896803","html_url":"https://github.com/hadley/stringr/issues/52#issuecomment-114896803","issue_url":"https://api.github.com/repos/hadley/stringr/issues/52","id":114896803,"user":{"login":"nachti","id":5793911,"avatar_url":"https://avatars.githubusercontent.com/u/5793911?v=3","gravatar_id":"","url":"https://api.github.com/users/nachti","html_url":"https://github.com/nachti","followers_url":"https://api.github.com/users/nachti/followers","following_url":"https://api.github.com/users/nachti/following{/other_user}","gists_url":"https://api.github.com/users/nachti/gists{/gist_id}","starred_url":"https://api.github.com/users/nachti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nachti/subscriptions","organizations_url":"https://api.github.com/users/nachti/orgs","repos_url":"https://api.github.com/users/nachti/repos","events_url":"https://api.github.com/users/nachti/events{/privacy}","received_events_url":"https://api.github.com/users/nachti/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T14:52:41Z","updated_at":"2015-06-24T14:52:41Z","body":"Using the most recent version of `stringi` (0.5-3) the check works fine:\r\n\r\n```\r\nR CMD check stringr_1.0.0.9000.tar.gz\r\n* using log directory ‘/data/home/nachtmann/git/stringr.Rcheck’\r\n* using R version 3.2.0 (2015-04-16)\r\n* using platform: x86_64-suse-linux-gnu (64-bit)\r\n* using session charset: UTF-8\r\n* checking for file ‘stringr/DESCRIPTION’ ... OK\r\n* this is package ‘stringr’ version ‘1.0.0.9000’\r\n* checking package namespace information ... OK\r\n* checking package dependencies ... OK\r\n* checking if this is a source package ... OK\r\n* checking if there is a namespace ... OK\r\n* checking for executable files ... OK\r\n* checking for hidden files and directories ... OK\r\n* checking for portable file names ... OK\r\n* checking for sufficient/correct file permissions ... OK\r\n* checking whether package ‘stringr’ can be installed ... OK\r\n* checking installed package size ... OK\r\n* checking package directory ... OK\r\n* checking ‘build’ directory ... OK\r\n* checking DESCRIPTION meta-information ... OK\r\n* checking top-level files ... OK\r\n* checking for left-over files ... OK\r\n* checking index information ... OK\r\n* checking package subdirectories ... OK\r\n* checking R files for non-ASCII characters ... OK\r\n* checking R files for syntax errors ... OK\r\n* checking whether the package can be loaded ... OK\r\n* checking whether the package can be loaded with stated dependencies ... OK\r\n* checking whether the package can be unloaded cleanly ... OK\r\n* checking whether the namespace can be loaded with stated dependencies ... OK\r\n* checking whether the namespace can be unloaded cleanly ... OK\r\n* checking dependencies in R code ... OK\r\n* checking S3 generic/method consistency ... OK\r\n* checking replacement functions ... OK\r\n* checking foreign function calls ... OK\r\n* checking R code for possible problems ... OK\r\n* checking Rd files ... OK\r\n* checking Rd metadata ... OK\r\n* checking Rd cross-references ... OK\r\n* checking for missing documentation entries ... OK\r\n* checking for code/documentation mismatches ... OK\r\n* checking Rd \\usage sections ... OK\r\n* checking Rd contents ... OK\r\n* checking for unstated dependencies in examples ... OK\r\n* checking installed files from ‘inst/doc’ ... OK\r\n* checking files in ‘vignettes’ ... OK\r\n* checking examples ... OK\r\n* checking for unstated dependencies in ‘tests’ ... OK\r\n* checking tests ...\r\n  Running ‘testthat.R’\r\n OK\r\n* checking for unstated dependencies in vignettes ... OK\r\n* checking package vignettes in ‘inst/doc’ ... OK\r\n* checking running R code from vignettes ...\r\n   ‘stringr.Rmd’ using ‘UTF-8’ ... OK\r\n OK\r\n* checking re-building of vignette outputs ... OK\r\n* checking PDF version of manual ... OK\r\n* DONE\r\n\r\nStatus: OK\r\n```\r\nI think the issue could be closed.\r\nThanks to @gagolews for fixing!"}}