tidyverse / reprex

Render bits of R code for sharing, e.g., on GitHub or StackOverflow.
https://reprex.tidyverse.org
Other
741 stars 80 forks source link

Question: Does `{reprex}` support MS Teams? #446

Closed ramiromagno closed 1 year ago

ramiromagno commented 1 year ago

I am trying to paste into MS Teams chat but to no avail. Is there a workaround?

jennybc commented 1 year ago

Can you elaborate on "to no avail"? Is there anything on your clipboard? Or, there is, but it is somehow rejected for paste by Teams?

ramiromagno commented 1 year ago

Hi Jenny,

Sorry for my bad manners! It does copy to the clipboard fine, it's just that it won't get nicely formatted automatically. I am guessing this is an issue with MS Teams rather than reprex... see https://stackoverflow.com/questions/55014770/how-can-i-paste-markdown-in-microsoft-teams.

jennybc commented 1 year ago

I skimmed your SO link, but yeah it sounds like you need to experiment with venue, e.g. venue = "rtf" or venue = "html" and see if those work (better), unless/until Teams starts to handle markdown. I know for Slack, one has to turn off the WYWIWYG features in order to paste actual markdown and have it formatted correctly. I think most of these tools expect you to be using their facilities for formatting and it can be tricky/impossible to paste something from elsewhere.

ramiromagno commented 1 year ago

Thank you! I will try your suggestions.