Closed jennysjaarda closed 3 years ago
I am not sure what the issue could be. I assume the error goes away when you try to create a reprex? Could it be that you have an outdated copy of count_ukbb_drug_users()
somewhere else in your code which overwrites the count_ukbb_drug_users()
you expect to have?
Sorry in advance for a question without a reproducible example. I thought I would check if you have a quick suggestion as to my mistake. I have one target that is always outdated everytime I start a fresh R session. The target looks like this:
ukbb_drug_counts = count_ukbb_drug_users(ukbb_munge_drug_users, drug_codes_interest)
. The two arguments use upstream targets as inputs:ukbb_munge_drug_users
anddrug_codes_interest
.The function looks as follows:
Its purpose is to simply count the number of "users" of each drug from a dataset of drug users (0/1 = no/yes). I've included a snapshot of the data below. Is there something obviously wrong with the function such that it would always be outdated? I've tried using
deps_code
on it, but I don't notice anything. It only takes <1 second to run and it has no downstream targets so for now it's not a huge deal, but I would like to know what I'm doing wrong. Thanks in advance!