-
Notifications
You must be signed in to change notification settings - Fork 2
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
Mrc 4969 Allow <reportname>.R or orderly.R as orderly file #122
Changes from 12 commits
8fbbe08
ff67498
c44fed5
5665d04
6a3ee3d
f42780d
c779006
4332322
7dfbefd
3d4ef51
dd99536
47fa26a
ae37530
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In another PR we're going to need DYM support here for people getting things like underscores and hyphens confused (they do this quite a lot already) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
orderly2::orderly_artefact("Some data", "data.rds") | ||
d <- data.frame(a = 1:10, x = runif(10), y = 1:10 + runif(10)) | ||
saveRDS(d, "data.rds") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
orderly2::orderly_artefact("Some data", "data.rds") | ||
d <- data.frame(a = 1:10, x = runif(10), y = 1:10 + runif(10)) | ||
saveRDS(d, "data.rds") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
orderly2::orderly_artefact("Some data", "data.rds") | ||
d <- data.frame(a = 1:10, x = runif(10), y = 1:10 + runif(10)) | ||
saveRDS(d, "data.rds") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is quite correct, because you'll mishandle the case where we have
src/foo/foo.R
andsrc/foo/orderly.R
so we returnNULL
and think we can continue and then overwrite the existing file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be able to verify this with your two-orderly-files test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep so ive slightly changed the
suppress_errors
arg and split it intosuppress_zero_files
andsuppress_multiple_files
and added a test with my two-orderly-files to make sure it error, first time ive done with TTD :O