-
Notifications
You must be signed in to change notification settings - Fork 5
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
reprex & carbonate #14
Comments
Quick solution would be to run reprex. The solution is placed on the clipboard by reprex. Use the clipboard in a Setting |
Simple <- R6::R6Class("Simple",
public = list(
x = 1,
getx = function() self$x
)
)
Simple$set('public','foo',list(NULL))
Simple$public_fields
Rendering reprex...
Rendered reprex is on the clipboard.
obj <- carbonate::carbon$new()
obj$add_tinyurl <- TRUE
obj$tiny()
[1] "http://tinyurl.com/yaz3cg88"
obj$carbonate() |
Nice! Only improvement I'd see would be to use |
indeed the venue should be If you could make a PR that would be great! probably a vignette, seeing that the Readme is already overloaded and needs to be trimmed anyways. (If you want to add it as a new details chunk in the sharing subsection of the Readme that is also great, when I get a chance I can reorganize). I'm interested to know what the use case you had in mind to combine the two outputs? Thanks! |
Will write a vignette soon then! The reason for my asking is that I'm preparing a talk including a section about where/how to get help. It'll include a One workflow I had in mind but that's maybe a bit cumbersome to show some code (buggy or not) would involve a reprex, No well-formed ideas yet though. |
sounds cool. you can directly tweet from the carbon object. |
it would be cool if the venue for reprex could be |
I would find this cool too ! 😉 It still is in my TODO. Should prioritize that maybe... 🤔 Using |
My experiments https://github.com/maelle/reprex_demo I will contribute a README section to |
closing. |
The problem
I am wondering how to use
carbonate
andreprex
together. I.e. I'd like something similar to choosing a new venue forreprex
, that'd let me obtain a carbonate image and URL of the code I'd copied to clipboard, together with its output.Describe solutions you've considered
I think it might only be a documentation need.
The text was updated successfully, but these errors were encountered: