{"action":"opened","issue":{"url":"https://api.github.com/repos/Rapporter/pander/issues/159","labels_url":"https://api.github.com/repos/Rapporter/pander/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/Rapporter/pander/issues/159/comments","events_url":"https://api.github.com/repos/Rapporter/pander/issues/159/events","html_url":"https://github.com/Rapporter/pander/issues/159","id":60499801,"number":159,"title":"splitLine not passing test?","user":{"login":"sleepsort","id":3715108,"avatar_url":"https://avatars.githubusercontent.com/u/3715108?v=3","gravatar_id":"","url":"https://api.github.com/users/sleepsort","html_url":"https://github.com/sleepsort","followers_url":"https://api.github.com/users/sleepsort/followers","following_url":"https://api.github.com/users/sleepsort/following{/other_user}","gists_url":"https://api.github.com/users/sleepsort/gists{/gist_id}","starred_url":"https://api.github.com/users/sleepsort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sleepsort/subscriptions","organizations_url":"https://api.github.com/users/sleepsort/orgs","repos_url":"https://api.github.com/users/sleepsort/repos","events_url":"https://api.github.com/users/sleepsort/events{/privacy}","received_events_url":"https://api.github.com/users/sleepsort/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T13:35:08Z","updated_at":"2015-03-10T13:35:08Z","closed_at":null,"body":"It is quite weird that splitLine not working right.\r\nI'm using R-3.1.2, and checked out latest commit (54a7adf385).\r\n\r\nFollowing is the error report:\r\n\r\n\r\n1. Failure(@test-helpers.R#69): splitLine with hyphening behaves correctly -----\r\n\"char-\\nac-\\nter\" not equal to splitLine(\"character\", 2, TRUE)\r\n1 string mismatches:\r\nx[1]: \"character\"\r\ny[1]: \"char-\\nac-\\nter\"\r\n\r\n\r\n\r\n2. Failure(@test-helpers.R#70): splitLine with hyphening behaves correctly -----\r\nsplitLine(\"start testing\", 5, T) not equal to \"start\\ntest-\\ning\"\r\n1 string mismatches:\r\nx[1]: \"start\\ntest-\\ning\"\r\ny[1]: \"start\\ntesting\"\r\n\r\n\r\n\r\n3. Failure(@test-helpers.R#71): splitLine with hyphening behaves correctly -----\r\nsplitLine(\"Pander Package\", 5, T) not equal to \"Pan-\\nder\\nPack-\\nage\"\r\n1 string mismatches:\r\nx[1]: \"Pan-\\nder\\nPack-\\nage\"\r\ny[1]: \"Pander\\nPackage\"\r\n\r\n\r\n\r\n4. Failure(@test-helpers.R#72): splitLine with hyphening behaves correctly -----\r\nsplitLine(\"Pander Package\", 6, T) not equal to \"Pander\\nPack-\\nage\"\r\n1 string mismatches:\r\nx[1]: \"Pander\\nPack-\\nage\"\r\ny[1]: \"Pander\\nPackage\"\r\n\r\n\r\n\r\n5. Failure(@test-helpers.R#75): splitLine with hyphening behaves correctly -----\r\nlength(strsplit(splitLine(x, 10, TRUE), \"\\n\")[[1]]) not equal to 12\r\nMean relative difference: 0.08333333\r\n\r\nError: Test failures\r\nExecution halted"}}