yonicd / carbonate

carbon.js for R
https://yonicd.github.io/carbonate/
Other
212 stars 5 forks source link

Copy tinyurl to clipboard #3

Closed LucyMcGowan closed 6 years ago

LucyMcGowan commented 6 years ago

What do you think about a function that would let you either print the tinyurl or copy it to the clipboard (to include in a tweet)?

yonicd commented 6 years ago

you can build the tinyurl regardless of creating the image. you could grab that and pipe it into {twitteR}. (I didnt want to add any strong imports to the package)

saying that, if you have any ideas on improving upon the current workflow I think that would be great.

yonicd commented 6 years ago

sorry i take that back, it's a private method

yonicd commented 6 years ago

what i really wanted to do originally was add option to port the image directly to the clipboard and move it to a post, but I think that it is a bridge too far for clipr.

yonicd commented 6 years ago

here you go. you can test it out https://github.com/yonicd/carbonate/commit/429aad1bbec21cb48ad3eee2b48cdcae4fde7ebd before i PR it :)

LucyMcGowan commented 6 years ago

Just gave it a spin 🌀, looks great!

yonicd commented 6 years ago

Thanks for the idea.

yonicd commented 6 years ago

@LucyMcGowan ==> FYI