Repository navigation
|
Suppose I have an action (an R script, say) that returns a file only if some property of the data is met. In that case, if ever that condition is not met, then running this action results in an error Is there a way to side-step this error so that the action completes successfully? |
Answered by
wjchulme
Feb 12, 2021
Replies: 1 comment
|
A couple of workarounds that will work for now: a) Have the script create a dummy output file whenever that condition is not met, or always create the dummy file and have it overwritten whenever the condition is met. |
0 replies
Answer selected by
wjchulme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A couple of workarounds that will work for now:
a) Have the script create a dummy output file whenever that condition is not met, or always create the dummy file and have it overwritten whenever the condition is met.
b) Use catch-all pattern-matching so that as long as some files match the pattern, the error won't occur, for example
output/*.txt