I recently discovered the glue package.
After a little bit of research I couldn't figure out why glue::glue should be preferred over paste:
- According to this site, glue is slower than
paste. - The syntax of glue is similar and in no way easier to read than the syntax of paste.
However, in the link from above, the authors say that paste does not do string interpolation (only string insertion). I don't really know what this means.
Can some clarify why the glue package is interesting and what is meant by string insertion?
Thank you in advance.
EDIT: After the first feedback I want to ask a more precise question.
Are there any situations where one of paste or glue would clearly be preferred over the other?
I am trying to understand why someone put in the effort to create the glue package.