{"action":"opened","issue":{"url":"https://api.github.com/repos/awalker89/openxlsx/issues/135","labels_url":"https://api.github.com/repos/awalker89/openxlsx/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/awalker89/openxlsx/issues/135/comments","events_url":"https://api.github.com/repos/awalker89/openxlsx/issues/135/events","html_url":"https://github.com/awalker89/openxlsx/issues/135","id":120143144,"number":135,"title":"Feature request: append argument","user":{"login":"alexiglaser","id":7214348,"avatar_url":"https://avatars.githubusercontent.com/u/7214348?v=3","gravatar_id":"","url":"https://api.github.com/users/alexiglaser","html_url":"https://github.com/alexiglaser","followers_url":"https://api.github.com/users/alexiglaser/followers","following_url":"https://api.github.com/users/alexiglaser/following{/other_user}","gists_url":"https://api.github.com/users/alexiglaser/gists{/gist_id}","starred_url":"https://api.github.com/users/alexiglaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexiglaser/subscriptions","organizations_url":"https://api.github.com/users/alexiglaser/orgs","repos_url":"https://api.github.com/users/alexiglaser/repos","events_url":"https://api.github.com/users/alexiglaser/events{/privacy}","received_events_url":"https://api.github.com/users/alexiglaser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T10:49:13Z","updated_at":"2015-12-03T10:49:13Z","closed_at":null,"body":"This package is great but I was wondering if there could be an 'append' argument so that it adds a new row(s) to the spreadsheet. At present I know I could write something like:\r\n```R\r\ndf <- read.xlsx(file)\r\ndf <- rbind(df, newRow)\r\nsave.xlsx(df, file)\r\n```\r\nBut I would prefer to use 'append' (as in write.csv) as it would mean not constantly reading in the file, particularly when it is used as part of a large for loop. So for example:\r\n```R\r\nfor (i in 1:1e5)\r\n{\r\n    newRow <- c(mean(list[[i]]), sd(list[[i]]))\r\n    save.xlsx(newRow, file, append  = TRUE, colNames = FALSE)\r\n}\r\n```\r\nI know that the above is very inefficient code, but it is just to show a minimal example.\r\n\r\n"}}