Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

malcolmbarrett
Copy link
Contributor

Prework

Related GitHub issues and pull requests

Summary

Please explain the purpose and scope of your contribution.

This PR adds a small helper function, tar_load_all(), which loads all targets.

A point of discussion: I stuck with tar_load_all() like you suggested, but it occurs to me that a user of devtools might expect this function to do something slightly different e.g. load all functions that the pipeline is using, more similar to what load_all() does. Do you think that's an issue? tar_load_everything() is accurate but a bit long (if a non-issue thanks to autocompleting).

@wlandau
Copy link
Member

wlandau commented Apr 15, 2022

Good point about the name, I like tar_load_everything() for the reasons you describe and its more obvious correspondence to tar_load(everything()).

Copy link
Member

@wlandau wlandau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Would you add an entry for the function in _pkgdown.yml? After that, force(envir), and the name change to tar_load_everything(), I will merge.

@malcolmbarrett
Copy link
Contributor Author

Done, thanks!

Copy link
Member

@wlandau wlandau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @malcolmbarrett!

@wlandau wlandau merged commit 8b9a1ad into ropensci:main Apr 15, 2022
@malcolmbarrett malcolmbarrett deleted the tar_load_all branch April 18, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants