{"action":"created","comment":{"url":"https://api.github.com/repos/bedatadriven/renjin/pulls/comments/63840226","id":63840226,"diff_hunk":"@@ -203,6 +203,25 @@ public static void bindtextdomain(String domain, String dirname) {\n     // translation not yet supported.\r\n   }\r\n \r\n+  @Internal\r\n+  public static StringVector enc2utf8(SEXP inputVector) {\r\n+    if (!(inputVector instanceof StringVector)) {\r\n+      throw new EvalException(\"Error in enc2utf8(\" + inputVector + \") : argumemt is not a character vector\");\r\n+    }\r\n+\r\n+    StringVector.Builder outputVector = new StringVector.Builder();\r\n+    if (inputVector.length() > 1) {\r\n+      for (int i = 0; i < inputVector.length(); i++) {\r\n+        outputVector.add(((StringVector) inputVector).getElementAsObject(i));\r","path":"core/src/main/java/org/renjin/primitives/text/Text.java","position":13,"original_position":13,"commit_id":"998a8b6c2c937ee984817f87d30fa40f7dd532dd","original_commit_id":"998a8b6c2c937ee984817f87d30fa40f7dd532dd","user":{"login":"akbertram","id":454339,"avatar_url":"https://avatars.githubusercontent.com/u/454339?v=3","gravatar_id":"","url":"https://api.github.com/users/akbertram","html_url":"https://github.com/akbertram","followers_url":"https://api.github.com/users/akbertram/followers","following_url":"https://api.github.com/users/akbertram/following{/other_user}","gists_url":"https://api.github.com/users/akbertram/gists{/gist_id}","starred_url":"https://api.github.com/users/akbertram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akbertram/subscriptions","organizations_url":"https://api.github.com/users/akbertram/orgs","repos_url":"https://api.github.com/users/akbertram/repos","events_url":"https://api.github.com/users/akbertram/events{/privacy}","received_events_url":"https://api.github.com/users/akbertram/received_events","type":"User","site_admin":false},"body":"You will rarely want to use `getElementAsObject()`: prefer the typed methods like `getElementAsString()`. By adding an untyped element here, you are requiring runtime checks to see how it should be handled.","created_at":"2016-05-19T08:30:24Z","updated_at":"2016-05-19T08:30:24Z","html_url":"https://github.com/bedatadriven/renjin/pull/171#discussion_r63840226","pull_request_url":"https://api.github.com/repos/bedatadriven/renjin/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/bedatadriven/renjin/pulls/comments/63840226"},"html":{"href":"https://github.com/bedatadriven/renjin/pull/171#discussion_r63840226"},"pull_request":{"href":"https://api.github.com/repos/bedatadriven/renjin/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/bedatadriven/renjin/pulls/171","id":70519066,"html_url":"https://github.com/bedatadriven/renjin/pull/171","diff_url":"https://github.com/bedatadriven/renjin/pull/171.diff","patch_url":"https://github.com/bedatadriven/renjin/pull/171.patch","issue_url":"https://api.github.com/repos/bedatadriven/renjin/issues/171","number":171,"state":"open","locked":false,"title":"implement withVisible() and stub enc2utf8()","user":{"login":"psolaimani","id":2080137,"avatar_url":"https://avatars.githubusercontent.com/u/2080137?v=3","gravatar_id":"","url":"https://api.github.com/users/psolaimani","html_url":"https://github.com/psolaimani","followers_url":"https://api.github.com/users/psolaimani/followers","following_url":"https://api.github.com/users/psolaimani/following{/other_user}","gists_url":"https://api.github.com/users/psolaimani/gists{/gist_id}","starred_url":"https://api.github.com/users/psolaimani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psolaimani/subscriptions","organizations_url":"https://api.github.com/users/psolaimani/orgs","repos_url":"https://api.github.com/users/psolaimani/repos","events_url":"https://api.github.com/users/psolaimani/events{/privacy}","received_events_url":"https://api.github.com/users/psolaimani/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-18T12:31:35Z","updated_at":"2016-05-19T08:30:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f79c533c00fc7889bdce82968be3c2b32cd9bdb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bedatadriven/renjin/pulls/171/commits","review_comments_url":"https://api.github.com/repos/bedatadriven/renjin/pulls/171/comments","review_comment_url":"https://api.github.com/repos/bedatadriven/renjin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bedatadriven/renjin/issues/171/comments","statuses_url":"https://api.github.com/repos/bedatadriven/renjin/statuses/998a8b6c2c937ee984817f87d30fa40f7dd532dd","head":{"label":"bedatadriven:withVisible_enc2utf8","ref":"withVisible_enc2utf8","sha":"998a8b6c2c937ee984817f87d30fa40f7dd532dd","user":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"repo":{"id":7364548,"name":"renjin","full_name":"bedatadriven/renjin","owner":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bedatadriven/renjin","description":"JVM-based interpreter for the R language for the statistical analysis.","fork":false,"url":"https://api.github.com/repos/bedatadriven/renjin","forks_url":"https://api.github.com/repos/bedatadriven/renjin/forks","keys_url":"https://api.github.com/repos/bedatadriven/renjin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bedatadriven/renjin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bedatadriven/renjin/teams","hooks_url":"https://api.github.com/repos/bedatadriven/renjin/hooks","issue_events_url":"https://api.github.com/repos/bedatadriven/renjin/issues/events{/number}","events_url":"https://api.github.com/repos/bedatadriven/renjin/events","assignees_url":"https://api.github.com/repos/bedatadriven/renjin/assignees{/user}","branches_url":"https://api.github.com/repos/bedatadriven/renjin/branches{/branch}","tags_url":"https://api.github.com/repos/bedatadriven/renjin/tags","blobs_url":"https://api.github.com/repos/bedatadriven/renjin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bedatadriven/renjin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bedatadriven/renjin/git/refs{/sha}","trees_url":"https://api.github.com/repos/bedatadriven/renjin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bedatadriven/renjin/statuses/{sha}","languages_url":"https://api.github.com/repos/bedatadriven/renjin/languages","stargazers_url":"https://api.github.com/repos/bedatadriven/renjin/stargazers","contributors_url":"https://api.github.com/repos/bedatadriven/renjin/contributors","subscribers_url":"https://api.github.com/repos/bedatadriven/renjin/subscribers","subscription_url":"https://api.github.com/repos/bedatadriven/renjin/subscription","commits_url":"https://api.github.com/repos/bedatadriven/renjin/commits{/sha}","git_commits_url":"https://api.github.com/repos/bedatadriven/renjin/git/commits{/sha}","comments_url":"https://api.github.com/repos/bedatadriven/renjin/comments{/number}","issue_comment_url":"https://api.github.com/repos/bedatadriven/renjin/issues/comments{/number}","contents_url":"https://api.github.com/repos/bedatadriven/renjin/contents/{+path}","compare_url":"https://api.github.com/repos/bedatadriven/renjin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bedatadriven/renjin/merges","archive_url":"https://api.github.com/repos/bedatadriven/renjin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bedatadriven/renjin/downloads","issues_url":"https://api.github.com/repos/bedatadriven/renjin/issues{/number}","pulls_url":"https://api.github.com/repos/bedatadriven/renjin/pulls{/number}","milestones_url":"https://api.github.com/repos/bedatadriven/renjin/milestones{/number}","notifications_url":"https://api.github.com/repos/bedatadriven/renjin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bedatadriven/renjin/labels{/name}","releases_url":"https://api.github.com/repos/bedatadriven/renjin/releases{/id}","deployments_url":"https://api.github.com/repos/bedatadriven/renjin/deployments","created_at":"2012-12-29T08:38:37Z","updated_at":"2016-05-16T01:20:09Z","pushed_at":"2016-05-18T15:42:28Z","git_url":"git://github.com/bedatadriven/renjin.git","ssh_url":"git@github.com:bedatadriven/renjin.git","clone_url":"https://github.com/bedatadriven/renjin.git","svn_url":"https://github.com/bedatadriven/renjin","homepage":"","size":18638,"stargazers_count":210,"watchers_count":210,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":49,"forks":45,"open_issues":49,"watchers":210,"default_branch":"master"}},"base":{"label":"bedatadriven:master","ref":"master","sha":"534b0211b08a556cfa24afa0d64cde9104f93edd","user":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"repo":{"id":7364548,"name":"renjin","full_name":"bedatadriven/renjin","owner":{"login":"bedatadriven","id":2040176,"avatar_url":"https://avatars.githubusercontent.com/u/2040176?v=3","gravatar_id":"","url":"https://api.github.com/users/bedatadriven","html_url":"https://github.com/bedatadriven","followers_url":"https://api.github.com/users/bedatadriven/followers","following_url":"https://api.github.com/users/bedatadriven/following{/other_user}","gists_url":"https://api.github.com/users/bedatadriven/gists{/gist_id}","starred_url":"https://api.github.com/users/bedatadriven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bedatadriven/subscriptions","organizations_url":"https://api.github.com/users/bedatadriven/orgs","repos_url":"https://api.github.com/users/bedatadriven/repos","events_url":"https://api.github.com/users/bedatadriven/events{/privacy}","received_events_url":"https://api.github.com/users/bedatadriven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bedatadriven/renjin","description":"JVM-based interpreter for the R language for the statistical analysis.","fork":false,"url":"https://api.github.com/repos/bedatadriven/renjin","forks_url":"https://api.github.com/repos/bedatadriven/renjin/forks","keys_url":"https://api.github.com/repos/bedatadriven/renjin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bedatadriven/renjin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bedatadriven/renjin/teams","hooks_url":"https://api.github.com/repos/bedatadriven/renjin/hooks","issue_events_url":"https://api.github.com/repos/bedatadriven/renjin/issues/events{/number}","events_url":"https://api.github.com/repos/bedatadriven/renjin/events","assignees_url":"https://api.github.com/repos/bedatadriven/renjin/assignees{/user}","branches_url":"https://api.github.com/repos/bedatadriven/renjin/branches{/branch}","tags_url":"https://api.github.com/repos/bedatadriven/renjin/tags","blobs_url":"https://api.github.com/repos/bedatadriven/renjin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bedatadriven/renjin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bedatadriven/renjin/git/refs{/sha}","trees_url":"https://api.github.com/repos/bedatadriven/renjin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bedatadriven/renjin/statuses/{sha}","languages_url":"https://api.github.com/repos/bedatadriven/renjin/languages","stargazers_url":"https://api.github.com/repos/bedatadriven/renjin/stargazers","contributors_url":"https://api.github.com/repos/bedatadriven/renjin/contributors","subscribers_url":"https://api.github.com/repos/bedatadriven/renjin/subscribers","subscription_url":"https://api.github.com/repos/bedatadriven/renjin/subscription","commits_url":"https://api.github.com/repos/bedatadriven/renjin/commits{/sha}","git_commits_url":"https://api.github.com/repos/bedatadriven/renjin/git/commits{/sha}","comments_url":"https://api.github.com/repos/bedatadriven/renjin/comments{/number}","issue_comment_url":"https://api.github.com/repos/bedatadriven/renjin/issues/comments{/number}","contents_url":"https://api.github.com/repos/bedatadriven/renjin/contents/{+path}","compare_url":"https://api.github.com/repos/bedatadriven/renjin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bedatadriven/renjin/merges","archive_url":"https://api.github.com/repos/bedatadriven/renjin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bedatadriven/renjin/downloads","issues_url":"https://api.github.com/repos/bedatadriven/renjin/issues{/number}","pulls_url":"https://api.github.com/repos/bedatadriven/renjin/pulls{/number}","milestones_url":"https://api.github.com/repos/bedatadriven/renjin/milestones{/number}","notifications_url":"https://api.github.com/repos/bedatadriven/renjin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bedatadriven/renjin/labels{/name}","releases_url":"https://api.github.com/repos/bedatadriven/renjin/releases{/id}","deployments_url":"https://api.github.com/repos/bedatadriven/renjin/deployments","created_at":"2012-12-29T08:38:37Z","updated_at":"2016-05-16T01:20:09Z","pushed_at":"2016-05-18T15:42:28Z","git_url":"git://github.com/bedatadriven/renjin.git","ssh_url":"git@github.com:bedatadriven/renjin.git","clone_url":"https://github.com/bedatadriven/renjin.git","svn_url":"https://github.com/bedatadriven/renjin","homepage":"","size":18638,"stargazers_count":210,"watchers_count":210,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":49,"forks":45,"open_issues":49,"watchers":210,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bedatadriven/renjin/pulls/171"},"html":{"href":"https://github.com/bedatadriven/renjin/pull/171"},"issue":{"href":"https://api.github.com/repos/bedatadriven/renjin/issues/171"},"comments":{"href":"https://api.github.com/repos/bedatadriven/renjin/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/bedatadriven/renjin/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/bedatadriven/renjin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bedatadriven/renjin/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/bedatadriven/renjin/statuses/998a8b6c2c937ee984817f87d30fa40f7dd532dd"}}}}