Skip to content

How to get targets to watch a local package development and update pipeline if changes made [help] #1200

Closed Answered by joelnitta
njtierney asked this question in Help
Discussion options

You must be logged in to vote

@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:

library(targets)
tar_option_set(
  packages = c("tibble", "dplyr", "tidyr"),
  imports = c("tibble", "tidyr")
)
list(
  tar_target(
    name = data,
    command = tibble(x = rnorm(100), y = rnorm(100))
  ),
  tar_target(
    name = data_processed,
    command = select(data, x)
  ),
  tar_target(
    name = data_no_na,
    command = drop_na(data)
  )
)

In this case, if you were to install a new version of {tibb…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@njtierney
Comment options

@smwindecker
Comment options

@joelnitta
Comment options

@wlandau
Comment options

@njtierney
Comment options

Comment options

You must be logged in to vote
2 replies
@njtierney
Comment options

@wlandau
Comment options

Answer selected by njtierney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants