{"action":"created","issue":{"url":"https://api.github.com/repos/awalker89/openxlsx/issues/55","labels_url":"https://api.github.com/repos/awalker89/openxlsx/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/awalker89/openxlsx/issues/55/comments","events_url":"https://api.github.com/repos/awalker89/openxlsx/issues/55/events","html_url":"https://github.com/awalker89/openxlsx/issues/55","id":56214213,"number":55,"title":"restoring of initial option scipen fails","user":{"login":"petersteiner","id":4613327,"avatar_url":"https://avatars.githubusercontent.com/u/4613327?v=3","gravatar_id":"","url":"https://api.github.com/users/petersteiner","html_url":"https://github.com/petersteiner","followers_url":"https://api.github.com/users/petersteiner/followers","following_url":"https://api.github.com/users/petersteiner/following{/other_user}","gists_url":"https://api.github.com/users/petersteiner/gists{/gist_id}","starred_url":"https://api.github.com/users/petersteiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersteiner/subscriptions","organizations_url":"https://api.github.com/users/petersteiner/orgs","repos_url":"https://api.github.com/users/petersteiner/repos","events_url":"https://api.github.com/users/petersteiner/events{/privacy}","received_events_url":"https://api.github.com/users/petersteiner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-02T09:39:54Z","updated_at":"2015-02-03T09:15:07Z","closed_at":"2015-02-03T09:15:07Z","body":"```\r\n> getOption(\"scipen\")\r\n[1] 0\r\n> \r\n> wb <- createWorkbook()\r\n> addWorksheet(wb, \"Cars\")\r\n> \r\n> x <- mtcars[1:6,]\r\n> writeData(wb, \"Cars\", x, startCol = 2, startRow = 3, rowNames = TRUE)\r\n> \r\n> getOption(\"scipen\")\r\n$scipen\r\n[1] 0\r\n```\r\n\r\nInstead of `options(\"scipen\")`, you should use `getOption(\"scipen\")` instead within the following functions:\r\n\r\n    - wrappers.R\r\n    - writeData.R\r\n    - writeDataTable.R\r\n\r\neg: `exSciPen <- getOption(\"scipen\")` instead of `exSciPen <- options(\"scipen\")`\r\n\r\nYour present code returns a list of length one instead of a numeric. With each call of one of the above functions, this list is growing and openxlsx crashes at some point. Thanks for your package - it's really great!"},"comment":{"url":"https://api.github.com/repos/awalker89/openxlsx/issues/comments/72617357","html_url":"https://github.com/awalker89/openxlsx/issues/55#issuecomment-72617357","issue_url":"https://api.github.com/repos/awalker89/openxlsx/issues/55","id":72617357,"user":{"login":"awalker89","id":7400673,"avatar_url":"https://avatars.githubusercontent.com/u/7400673?v=3","gravatar_id":"","url":"https://api.github.com/users/awalker89","html_url":"https://github.com/awalker89","followers_url":"https://api.github.com/users/awalker89/followers","following_url":"https://api.github.com/users/awalker89/following{/other_user}","gists_url":"https://api.github.com/users/awalker89/gists{/gist_id}","starred_url":"https://api.github.com/users/awalker89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awalker89/subscriptions","organizations_url":"https://api.github.com/users/awalker89/orgs","repos_url":"https://api.github.com/users/awalker89/repos","events_url":"https://api.github.com/users/awalker89/events{/privacy}","received_events_url":"https://api.github.com/users/awalker89/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T09:15:07Z","updated_at":"2015-02-03T09:15:07Z","body":"Thanks for picking this up. Change made."}}