Closed jennysjaarda closed 4 years ago
I think I solved it, by a stroke of luck. The problematic function was calling another function as follows:
classify_drugs(result,drug_list,low_inducers, high_inducers)
and the variables low_inducers
and high_inducers
were not defined within the function.
When I changed the function to include these as inputs it seems to have solved the outdated issue. The drake_plan was also updated as follows:
munge_pheno_follow(pheno_baseline, !!test_drugs, test_drugs_num$i, !!low_inducers, !!high_inducers)
I hope that is consistent with how drake behaves! I know it isn't good practice to use globally defined variables within a function, I just forgot to include them as inputs in this case.
Prework
drake
's code of conduct.drake-r-package
tag. (If you anticipate extended follow-up and discussion, you are already in the right place!)Description
I have a fairly complex plan and I noticed that I one target is always triggering downstream targets as outdated. I have no idea why and I was wondering if you could help me isolate the problem. I have narrowed it down to this function below. I have tried running
deps_profile
on this function but I don't really know what to look for. Any suggestions would be greatly appreciated!The plan looks like this: