Skip to content

Function always outdated #1366

Answered by jennysjaarda
jennysjaarda asked this question in Q&A
Discussion options

You must be logged in to vote

I think I may have found the problem, I assume the r_make may help solve the issue, and ultimately moving to targets would be the ideal long term solution. Here I have a reproducible example:

library(drake)
library(dplyr)
  
eths <- c("CEU", "EA", "MIXED", "NA", "YRI")

test_plan <- drake_plan(
  eth_test =  tibble( eths = !!eths),
  eth_sub = eth_test %>% filter(eth!="META")
)

make(test_plan)
outdated(test_plan)
## none 

eth="X"

outdated(test_plan)
## now eth_sub is outdated

I believe the problem was that I was developing and troubleshooting code so had defined some variables within my R session (such as eth) and the filter function combined with defining this variable invalidated th…

Replies: 7 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wlandau
Comment options

You must be logged in to vote
3 replies
@wlandau
Comment options

@jennysjaarda
Comment options

@wlandau
Comment options

Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1365 on April 22, 2021 15:18.