{"action":"created","issue":{"url":"https://api.github.com/repos/pbiecek/archivist/issues/59","labels_url":"https://api.github.com/repos/pbiecek/archivist/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/pbiecek/archivist/issues/59/comments","events_url":"https://api.github.com/repos/pbiecek/archivist/issues/59/events","html_url":"https://github.com/pbiecek/archivist/issues/59","id":52956542,"number":59,"title":"Is ascii = TRUE needed in saveToRepo function?","user":{"login":"MarcinKosinski","id":6773454,"avatar_url":"https://avatars.githubusercontent.com/u/6773454?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcinKosinski","html_url":"https://github.com/MarcinKosinski","followers_url":"https://api.github.com/users/MarcinKosinski/followers","following_url":"https://api.github.com/users/MarcinKosinski/following{/other_user}","gists_url":"https://api.github.com/users/MarcinKosinski/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcinKosinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcinKosinski/subscriptions","organizations_url":"https://api.github.com/users/MarcinKosinski/orgs","repos_url":"https://api.github.com/users/MarcinKosinski/repos","events_url":"https://api.github.com/users/MarcinKosinski/events{/privacy}","received_events_url":"https://api.github.com/users/MarcinKosinski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-27T12:58:33Z","updated_at":"2015-01-03T23:36:19Z","closed_at":null,"body":"I've noticed that `saveToRepo()` function creates a much bigger file than regular default `save()`  when saving an artifact. For example when I regularly load an object from a file that had 13 MB and save it with `saveToRepo()` it shows up that the file now has almost 89 MB.\r\n\r\n````{Ruby}\r\n> load(\"D:/Museum/analizaMarcin.rda\")\r\n> library(archivist)\r\n> saveToRepo(analiza, getwd())\r\n[1] \"7c3b57cb4f57016493539c221ea50baf\"\r\n> file.info(\"gallery/7c3b57cb4f57016493539c221ea50baf\")$size\r\n[1] NA\r\n> file.info(\"gallery/7c3b57cb4f57016493539c221ea50baf.rda\")$size\r\n[1] 88235933\r\n> file.info(\"D:/Museum/analizaMarcin.rda\")$size\r\n[1] 13739958\r\n````\r\n\r\nI think this is the matter of `ascii=TRUE` parameter in `save()` function (which is used in saveToRepo()`.\r\n\r\n> save(analiza, file=\"test.rda\", ascii = TRUE)\r\n> file.info(\"test.rda\")$size\r\n[1] 88235933\r\n````\r\n\r\n\r\nIs that parameter really necessary?"},"comment":{"url":"https://api.github.com/repos/pbiecek/archivist/issues/comments/68614095","html_url":"https://github.com/pbiecek/archivist/issues/59#issuecomment-68614095","issue_url":"https://api.github.com/repos/pbiecek/archivist/issues/59","id":68614095,"user":{"login":"pbiecek","id":4624318,"avatar_url":"https://avatars.githubusercontent.com/u/4624318?v=3","gravatar_id":"","url":"https://api.github.com/users/pbiecek","html_url":"https://github.com/pbiecek","followers_url":"https://api.github.com/users/pbiecek/followers","following_url":"https://api.github.com/users/pbiecek/following{/other_user}","gists_url":"https://api.github.com/users/pbiecek/gists{/gist_id}","starred_url":"https://api.github.com/users/pbiecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbiecek/subscriptions","organizations_url":"https://api.github.com/users/pbiecek/orgs","repos_url":"https://api.github.com/users/pbiecek/repos","events_url":"https://api.github.com/users/pbiecek/events{/privacy}","received_events_url":"https://api.github.com/users/pbiecek/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T23:36:19Z","updated_at":"2015-01-03T23:36:19Z","body":"in archivist2 I've added compress = \"bz\", compression_level = 9 to reduce file size further.\r\nfortunately it does not matter for load() so same repositories can be accessed by both versions "}}