Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save expected datasets as files #308

Closed
31 tasks done
wibeasley opened this issue Sep 26, 2020 · 0 comments
Closed
31 tasks done

save expected datasets as files #308

wibeasley opened this issue Sep 26, 2020 · 0 comments
Assignees

Comments

@wibeasley
Copy link
Member

wibeasley commented Sep 26, 2020

instead of embedding the expected datasets as dput() output.

From R Programming for Data Science by Roger Peng (https://bookdown.org/rdpeng/rprogdatascience/using-textual-and-binary-formats-for-storing-data.html)

The dump() and dput() functions are useful because the resulting textual format is edit-able, and in the case of corruption, potentially recoverable. Unlike writing out a table or CSV file, dump() and dput() preserve the metadata (sacrificing some readability), so that another user doesn’t have to specify it all over again. For example, we can preserve the class of each column of a table or the levels of a factor variable.

@wibeasley wibeasley self-assigned this Sep 26, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
ref #308

```
[ OK: 807 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 70 ]
1. Failure: Metadata Normal (@test-metadata-read.R#141)
2. Failure: Metadata Normal (@test-metadata-read.R#147)
3. Failure: Metadata Normal (@test-metadata-read.R#152)
4. Failure: label (@test-read-batch-simple.R#276)
5. Failure: label (@test-read-batch-simple.R#291)
6. Failure: label-header (@test-read-batch-simple.R#316)
7. Failure: default (@test-read-oneshot-eav.R#43)
8. Failure: default (@test-read-oneshot-eav.R#51)
9. Failure: default (@test-read-oneshot-eav.R#57)
```
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
wibeasley added a commit that referenced this issue Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant