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

Glue magic Part I | Credibly Curious #57

Open
utterances-bot opened this issue Mar 6, 2021 · 3 comments
Open

Glue magic Part I | Credibly Curious #57

utterances-bot opened this issue Mar 6, 2021 · 3 comments

Comments

@utterances-bot
Copy link

Glue magic Part I | Credibly Curious

https://www.njtierney.com/post/2019/07/07/glue-magic-p1/

Copy link

This is exactly the same trip, I took. Nice to find that I'm not the only one 😁

Copy link

This is great! So glue seems great for your example, and correct me publicly if I am wrong, but if the R bits you want to include are named objects, and potentially long ones, you lose the companionship and life-saving autocomplete benefits, right?

Do you pick and choose between glueing and paste(0)ing according to the task or has your coding adapted? Or back to option 1, I'm just plain wrong?

@njtierney
Copy link
Collaborator

you lose the companionship and life-saving autocomplete benefits, right

Alas, you do lose them, if you are typing inside a string.

So,

really_really_long_variable_name_that_is_complex

Wouldn't autocomplete in

glue::glue("{really_really_long_variable_name_that_is_complex}")

One workaround would be to cut/paste the variable name.

I don't really use paste0 anymore, unless I don't want to load glue for some reason :)

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

No branches or pull requests

4 participants