You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a complex task. Below is sketch how this could work:
Every template comes with an ID so that we know which tic template we should look up
Every template has a part "TEMPLATE start/end" which will be strictly replaced with the upstream template
Then we enforce users to put local modifications to the templates in a section which is encapsulated by "USER CHANGES". During the update process, we look for this part and simply append it to the upstream template part
We check for possible duplicates and delete the duplicated parts from the TEMPLATE part since the user changes have higher preference
We tell the user which part we deleted from the TEMPLATE part due to the local changes which are stored in his YAML
Most often changes will be made for installing additional system libs. In this case, there will be no conflict at all because we do not define this part in the tic templates.
Other changes I see are mods to the env vars. This is a case that we should be able to catch in a descriptive way using the approach outlined above.
If users follow the principle to install any R deps only via tic.R, I am positive that this approach could work.
In the end, the user would only need to call tic::update_yaml() and everything will just work.
The text was updated successfully, but these errors were encountered:
This is a complex task. Below is sketch how this could work:
Most often changes will be made for installing additional system libs. In this case, there will be no conflict at all because we do not define this part in the tic templates.
Other changes I see are mods to the env vars. This is a case that we should be able to catch in a descriptive way using the approach outlined above.
If users follow the principle to install any R deps only via tic.R, I am positive that this approach could work.
In the end, the user would only need to call
tic::update_yaml()
and everything will just work.The text was updated successfully, but these errors were encountered: