Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more customisation of defaults for tar_* functions #1085

Closed
3 tasks done
Moohan opened this issue Jun 21, 2023 · 1 comment
Closed
3 tasks done

Allow more customisation of defaults for tar_* functions #1085

Moohan opened this issue Jun 21, 2023 · 1 comment
Assignees

Comments

@Moohan
Copy link

Moohan commented Jun 21, 2023

Prework

  • I understand and agree to help guide.
  • I understand and agree to contributing guide.
  • New features take time and effort to create, and they take even more effort to maintain. So if the purpose of the feature is to resolve a struggle you are encountering personally, please consider first posting a "trouble" or "other" issue so we can discuss your use case and search for existing solutions first.

Proposal

My specific use case is that I use tar_visnetwork(level_separation = 750L, label = c("time", "size")) quite regularly. It would be great if I could set the default level_separation and label somewhere, either in tar_option_set or in _targets.yaml using tar_config_set.

I think generally this is applicable to a lot of functions and there parameters where it would be good to have the ability to set default options for them.

@wlandau
Copy link
Member

wlandau commented Jun 22, 2023

I added tar_config_set() configurable defaults for label and level_separation. Hopefully that helps.

There are so many arguments that I prefer to handle this sort of thing on a case-by-case basis.

@wlandau wlandau closed this as completed Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants