Skip to content

Conversation

tanho63
Copy link

@tanho63 tanho63 commented Sep 19, 2025

Closes #190. Also, adds a small bugfix to prevent a preview from opening when reprex(html_preview=FALSE) which makes test code a little prettier.

reprex(print(pi), html_preview = FALSE|> upload_gist()
# ℹ Rendering reprex...
# ✔ Uploaded reprex to <https://gist.github.com/tanho63/fb3acd37a076780ca37233aaa070f7bc>

See: https://gist.github.com/tanho63/fb3acd37a076780ca37233aaa070f7bc

TODO:

  • what testthat tests make sense? The gh::gh() call doesn't feel "in scope" for reprex to test via CI. Is the implementation minimal enough that I can skip adding one?

@tanho63 tanho63 changed the title Add upload_gist() to upload reprex() output to github gist via gh Add upload_gist() to upload reprex() output to github gist via gh::gh() Sep 19, 2025
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.

fling reprex on the internet e.g. as a gist
1 participant