Would you know if there is any way to pass external variables to the bash chunks?
For example, I have python chunk:
output_dir = "/Users/Santa/results"
Then I would like to execute something like that:
./give_gifts_to_chilren -o ((output_dir))/children_addresses.txt
((output_dir)) comes from the python environment.
There was a previous thread How to pass arguments to bash chunk defined as variables in R?, but the response is a bit unrelated, because it is not about how to execute bash commands from R, rather than how to have bash commands as separate chunks
Thank you in advance for your help and time,