[help] How can I use the dynamic target naming functions for a targetopia package? #1173
Replies: 1 comment 2 replies
-
If you use dynamic branching, then the names are created automatically. But if the number of models is not in the thousands, and if those models can have informative names, then static branching could work well. Target factories in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Help
Description
I'm hoping to push
nlmixr2targets
to CRAN in the next few weeks. One feature that I want to get in before sending it to CRAN is a way to allow a user to generate many models as a list easily. The many models would all use the same source data, and they would have long descriptions. A call to this may look something like:As an internal step, it would do something like the following where
93427bac
and89053bd3
are arbitrary hashes. (I realize that the code in thenlmixr2targets
package would not look directly like this as there would be extensive use ofsubstitute()
and similar to make the names. Hopefully the example is clear.)In essence, I want to use dynamic branching, I think. But, I don't want to reinvent the wheel. Is there a way that I can use the same methods that
targets
uses for creating dynamic branching names within thenlmixr2targets
package?Beta Was this translation helpful? Give feedback.
All reactions