Closed robinhasse closed 11 months ago
Attention: 37 lines
in your changes are missing coverage. Please review.
Comparison is base (
f88533c
) 34.96% compared to head (83c1f42
) 34.71%.:exclamation: Current head 83c1f42 differs from pull request most recent head 208905b. Consider uploading reports for the commit 208905b to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Wouldn't the alternative simply be to return NULL
here in getfiledestinations()
and then make the distribution conditional on ! is.null(file2destination)
? So if you don't find input
files, don't distribute anything? You would not need the additional distribute
switch anymore…
Wouldn't the alternative simply be to return
NULL
here ingetfiledestinations()
and then make the distribution conditional on! is.null(file2destination)
? So if you don't findinput
files, don't distribute anything?
Thats definitely smarter but changes the default behaviour (though only in case of a former error). I could add a warning that can be suppressed if you don't expect distribution.
I even think a message
would be sufficient. If you would like to use the function as such in your model, then it shouldn't raise a warning.
I even think a
message
would be sufficient. If you would like to use the function as such in your model, then it shouldn't raise a warning.
I eventually did it the way you suggested. Thanks Oli!
I like the idea of the PR, it just needs some more finetuning (see my specific comments)
Thanks @tscheypidi for taking a look. You mentioned (multiple?) comments but I see just one. Do you have other concerns I should take care of?
I made two comments, but was now also not able to see my second one. I was adding to Olivers comment with the messaging the suggestion not to trigger a message at all if not files are to be deleted, as this might be confusing to users not familiar with the function and is probably not necessary to be mentioned. Other than that I think I did not had any further comments
getfiledestination
now returns NULL if nofiles
file is founddownload_distribute
can now handle a NULL fromgetfiledestination
and will download and unpack but not distribute in this case