Skip to content

[help] What is the preferred way to get attributes of an individual target? #1251

Closed Answered by wlandau
billdenney asked this question in Help
Discussion options

You must be logged in to vote

There isn't an official exported targets getter. It's generally better to control names and expressions yourself and pass them to tar_target_raw(), as opposed to relying on internal data in a target object, because the design of a target object might change in the future. However, if you absolutely must use e.g. generated_target$settings$name, you probably won't hit problems because I have not needed to change the structure of internal target data in the 4 years targets has been around.

Replies: 1 comment 2 replies

Comment options

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

@wlandau
Comment options

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