{"action":"opened","issue":{"url":"https://api.github.com/repos/lbraglia/RStata/issues/12","repository_url":"https://api.github.com/repos/lbraglia/RStata","labels_url":"https://api.github.com/repos/lbraglia/RStata/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/lbraglia/RStata/issues/12/comments","events_url":"https://api.github.com/repos/lbraglia/RStata/issues/12/events","html_url":"https://github.com/lbraglia/RStata/issues/12","id":387456804,"node_id":"MDU6SXNzdWUzODc0NTY4MDQ=","number":12,"title":"Error in seq.int(cutpoints[1] + 1, cutpoints[2] - 1) : Stata 15.1, Windows 10","user":{"login":"sks786","id":8131690,"node_id":"MDQ6VXNlcjgxMzE2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/8131690?v=4","gravatar_id":"","url":"https://api.github.com/users/sks786","html_url":"https://github.com/sks786","followers_url":"https://api.github.com/users/sks786/followers","following_url":"https://api.github.com/users/sks786/following{/other_user}","gists_url":"https://api.github.com/users/sks786/gists{/gist_id}","starred_url":"https://api.github.com/users/sks786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks786/subscriptions","organizations_url":"https://api.github.com/users/sks786/orgs","repos_url":"https://api.github.com/users/sks786/repos","events_url":"https://api.github.com/users/sks786/events{/privacy}","received_events_url":"https://api.github.com/users/sks786/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-04T20:02:21Z","updated_at":"2018-12-04T20:02:21Z","closed_at":null,"author_association":"NONE","body":"R version: 3.5.0 - (64 bit)\r\nRStudio version: 1.1.463 - (64 bit)\r\nRstata package version: 1.1.1\r\nStata version: 15.1\r\nOS: Windows 10\r\n\r\nI have tried debug steps mentioned at below url:\r\n    https://github.com/lbraglia/RStata/issues/6\r\n\r\nIn above url, @lbraglia mentioned, problem is with below line:\r\n    **cutpoints <- grep(cut_me_here, stataLog)**\r\n\r\nWhen I checked output of \"cutpoints\" in debug mode, it is 29.\r\n\r\nEven I agree with it, since very next line in stata is:\r\n     **stataLog <- stataLog[seq.int(cutpoints[1] + 1, cutpoints[2] - 1)]**\r\n\r\nSince, cutpoints[1] contains value 29, but cutpoints[2] is equal to NA, in that way above method is like:\r\n    seq.int(29+1,NA-1) = seq.int(30,NA)\r\nThats why error is throwing as:\r\n    **Warning: Error in seq.int: 'to' must be a finite number**\r\n\r\nBelow screenshot is supporting debugging steps and outcomes:\r\n![image](https://user-images.githubusercontent.com/8131690/49469389-649c9400-f82d-11e8-8512-9ce060391cde.png)\r\n\r\n\r\nI hope will get quick help.\r\n\r\nThanks.\r\n\r\n\r\n\r\n \r\n"}}
{"actor":{"display_login":"sks786"}}