-
Help
DescriptionHi there, We are developing code in a package locally that gets run in a targets pipeline. Sometimes we change how a function works in this package, and we would like the targets pipeline to rerun if that contains a function that is related. I guess similar behaviour to how things change if you change a function in the So my question is, is there a way to get targets to watch a specific directory of an R package, to see if there are changes there and update the pipeline if necessary? My initial thoughts were something like: tar_target(<rpkg>, "path/to/rpkg", format = "file") Or something like that, but I'm not sure if that's going to be too strict? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Have you read Package-based invalidation in the targets handbook? I think that has a solution for pretty much what you describe:
|
Beta Was this translation helpful? Give feedback.
-
@njtierney I think you are taking the example in the manual too literally. There is no need to call the function without arguments. It is just being shown to indicate that you are using the function from the package that you want to track. Please consider the first reprex I showed:
In this case, if you were to install a new version of {tibble} or {tidyr} that had changes to functions used in your pipeline (here, |
Beta Was this translation helpful? Give feedback.
@njtierney I think you are taking the example in the manual too literally. There is no need to call the function without arguments. It is just being shown to indicate that you are using the function from the package that you want to track.
Please consider the first reprex I showed:
In this case, if you were to install a new version of {tibb…