{"action":"created","issue":{"url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/issues/19","labels_url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/issues/19/comments","events_url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/issues/19/events","html_url":"https://github.com/HenrikBengtsson/R.filesets/issues/19","id":124665939,"number":19,"title":"extract(x, seq_along(x), onMissing=...) ignores if file is missing or not","user":{"login":"HenrikBengtsson","id":1616850,"avatar_url":"https://avatars.githubusercontent.com/u/1616850?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrikBengtsson","html_url":"https://github.com/HenrikBengtsson","followers_url":"https://api.github.com/users/HenrikBengtsson/followers","following_url":"https://api.github.com/users/HenrikBengtsson/following{/other_user}","gists_url":"https://api.github.com/users/HenrikBengtsson/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrikBengtsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrikBengtsson/subscriptions","organizations_url":"https://api.github.com/users/HenrikBengtsson/orgs","repos_url":"https://api.github.com/users/HenrikBengtsson/repos","events_url":"https://api.github.com/users/HenrikBengtsson/events{/privacy}","received_events_url":"https://api.github.com/users/HenrikBengtsson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-03T19:12:20Z","updated_at":"2016-01-04T06:31:47Z","closed_at":"2016-01-04T06:31:47Z","body":"`extract(x, seq_along(x), onMissing=\"NA\")` does not drop files that are `is.na()`, e.g.\r\n```r\r\n> files <- list(GenericDataFile())\r\n> ds <- GenericDataFileSet(files)\r\n\r\n> extract(ds, seq_along(ds), onMissing=\"error\")\r\nGenericDataFileSet:\r\nName: NA\r\nFull name: NA\r\nNumber of files: 1\r\nNames: NA [1]\r\nPath (to the first file): NA\r\nTotal file size: 0 bytes\r\nRAM: 0.00MB\r\n\r\n> extract(ds, seq_along(ds), onMissing=\"drop\")\r\nGenericDataFileSet:\r\nName: NA\r\nFull name: NA\r\nNumber of files: 1\r\nNames: NA [1]\r\nPath (to the first file): NA\r\nTotal file size: 0 bytes\r\nRAM: 0.00MB\r\n```"},"comment":{"url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/issues/comments/168594774","html_url":"https://github.com/HenrikBengtsson/R.filesets/issues/19#issuecomment-168594774","issue_url":"https://api.github.com/repos/HenrikBengtsson/R.filesets/issues/19","id":168594774,"user":{"login":"HenrikBengtsson","id":1616850,"avatar_url":"https://avatars.githubusercontent.com/u/1616850?v=3","gravatar_id":"","url":"https://api.github.com/users/HenrikBengtsson","html_url":"https://github.com/HenrikBengtsson","followers_url":"https://api.github.com/users/HenrikBengtsson/followers","following_url":"https://api.github.com/users/HenrikBengtsson/following{/other_user}","gists_url":"https://api.github.com/users/HenrikBengtsson/gists{/gist_id}","starred_url":"https://api.github.com/users/HenrikBengtsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenrikBengtsson/subscriptions","organizations_url":"https://api.github.com/users/HenrikBengtsson/orgs","repos_url":"https://api.github.com/users/HenrikBengtsson/repos","events_url":"https://api.github.com/users/HenrikBengtsson/events{/privacy}","received_events_url":"https://api.github.com/users/HenrikBengtsson/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T06:31:47Z","updated_at":"2016-01-04T06:31:47Z","body":"On the other hand, one could argue that `extract()` should only look at missing value in the `files` argument.  With simply leave it as is for now."}}